.owner-cloud-switcher[hidden] { display: none !important; }

body.cloud-owner-lab { overflow-x: hidden; }

body.cloud-owner-lab #cloudView {
    position: relative;
    isolation: isolate;
    overflow: visible;
}
body.cloud-owner-lab #cloudView::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100vw;
    height: 100%;
    top: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 100% 8%, rgba(255, 165, 82, .16), rgba(255, 165, 82, 0) 38%),
        radial-gradient(circle at 0 72%, rgba(255, 165, 82, .055), rgba(255, 165, 82, 0) 34%);
    pointer-events: none;
}
body.cloud-owner-lab .cloud-page-heading {
    position: relative;
    margin-bottom: 1.4rem;
    padding: 1.45rem 1.55rem;
    overflow: hidden;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, var(--accent) 6%), var(--surface));
    box-shadow: 0 20px 55px rgba(20, 24, 33, .07);
}
body.cloud-owner-lab .cloud-page-heading::after {
    content: 'GSC CLOUD';
    position: absolute;
    top: 16px;
    right: 18px;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--accent-hover);
    background: var(--accent-subtle);
    font-size: .5rem;
    font-weight: 900;
    letter-spacing: .1em;
}
body.cloud-owner-lab #cloudView .cloud-page-heading h2 {
    font-size: clamp(2rem, 3.3vw, 3rem);
}
body.cloud-owner-lab #cloudView .cloud-page-heading .subtitle {
    max-width: 520px;
    margin-top: .55rem;
    font-size: .8rem;
}
body.cloud-owner-lab .owner-cloud-switcher {
    width: 100%;
    margin-bottom: 1rem;
    padding: .55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--border);
    border-radius: 25px;
    overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 97%, var(--accent) 3%), color-mix(in srgb, var(--surface) 91%, transparent));
    box-shadow: 0 14px 38px rgba(17, 26, 43, .075);
    backdrop-filter: blur(18px);
}
body.cloud-owner-lab .owner-cloud-switcher-copy {
    padding-left: .7rem;
    display: flex;
    align-items: baseline;
    gap: .4rem;
    white-space: nowrap;
}
body.cloud-owner-lab .owner-cloud-switcher-copy span {
    color: #ff9f47;
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
body.cloud-owner-lab .owner-cloud-switcher-copy strong {
    color: var(--text);
    font-size: .72rem;
}
body.cloud-owner-lab .owner-cloud-switcher-tabs {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: .35rem;
}
body.cloud-owner-lab .owner-cloud-switcher-tabs::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset-block: 0;
    left: 0;
    width: calc((100% - .7rem) / 3);
    border-radius: 13px;
    background: #f4f5f7;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
    transform: translateX(0);
    transition: transform .46s cubic-bezier(.18, 1.18, .28, 1);
    will-change: transform;
}
body.cloud-owner-lab .owner-cloud-switcher-tabs[data-active-mode="private"]::before {
    transform: translateX(calc(100% + .35rem));
}
body.cloud-owner-lab .owner-cloud-switcher-tabs[data-active-mode="share"]::before {
    transform: translateX(calc(200% + .7rem));
}
body.cloud-owner-lab .owner-cloud-switcher-tabs button {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 0 .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 0;
    border-radius: 13px;
    color: var(--text-3);
    background: transparent;
    font: inherit;
    font-size: .67rem;
    font-weight: 800;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}
body.cloud-owner-lab .owner-cloud-switcher-tabs button:hover { color: var(--text); }
body.cloud-owner-lab .owner-cloud-switcher-tabs button:disabled { opacity: .38; cursor: not-allowed; }
body.cloud-owner-lab .owner-cloud-switcher-tabs button:disabled:hover { color: var(--text-3); }
body.cloud-owner-lab .owner-cloud-switcher-tabs button.active {
    color: #111317;
    background: transparent;
    box-shadow: none;
}
body.cloud-owner-lab .owner-cloud-switcher-tabs button:active { transform: scale(.97); }
body.cloud-owner-lab .owner-cloud-switcher-tabs svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    stroke-width: 2;
}
body.cloud-owner-lab .owner-cloud-switcher-tabs button.active svg {
    animation: ownerCloudIconPop .46s cubic-bezier(.18, 1.3, .3, 1) both;
}
@keyframes ownerCloudIconPop {
    0% { transform: scale(.78); }
    62% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

body.cloud-owner-lab #cloudUnlockedZone {
    width: 100%;
    gap: 1rem;
}
body.cloud-owner-lab #cloudUnlockedZone > [data-owner-cloud-panel] { display: none !important; }
body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-vault {
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: stretch;
}
body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-vault > [data-owner-cloud-panel="storage"],
body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-vault > [data-owner-cloud-panel="files"],
body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-vault > [data-owner-cloud-panel="donations"] { display: flex !important; }
body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-private,
body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-share { grid-template-columns: minmax(0, 1fr); }
body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-private > [data-owner-cloud-panel="private"] { display: block !important; }
body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-share > [data-owner-cloud-panel="share"] { display: block !important; }

body.cloud-owner-lab #cloudUnlockedZone > .cloud-panel,
body.cloud-owner-lab #cloudUnlockedZone > .cloud-card,
body.cloud-owner-lab #cloudUnlockedZone > .private-folders-feature {
    border-color: color-mix(in srgb, var(--border) 82%, var(--accent) 18%);
    box-shadow: 0 18px 50px rgba(17, 26, 43, .065);
}
body.cloud-owner-lab .cloud-storage-panel {
    min-height: 505px;
    padding: 1.45rem;
}
body.cloud-owner-lab .cloud-storage-overview { margin: 1.45rem 0 1.2rem; }
body.cloud-owner-lab #cloudView .drop-zone {
    min-height: 154px;
    border-radius: 17px;
}
body.cloud-owner-lab .cloud-files-panel {
    min-height: 505px;
    padding: 1.45rem;
}
body.cloud-owner-lab .cloud-toolbar { margin-top: 1.25rem; }
body.cloud-owner-lab .cloud-file-area { min-height: 245px; margin-top: 1rem; }
body.cloud-owner-lab #cloudView .file-list { max-height: 315px; }
body.cloud-owner-lab #cloudView .file-item {
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
body.cloud-owner-lab #cloudView .file-item:hover {
    border-color: var(--border);
    background: var(--surface-2);
    transform: translateX(3px);
}
body.cloud-owner-lab .private-folders-feature,
body.cloud-owner-lab .temp-share-panel { min-height: 0; }
body.cloud-owner-lab .temp-share-panel { padding: 1.5rem; }

body.cloud-owner-lab .owner-cloud-panel-enter {
    animation: ownerCloudPanelIn .42s cubic-bezier(.2, .9, .25, 1) both;
}
body.cloud-owner-lab .owner-cloud-panel-enter:nth-of-type(2) { animation-delay: .055s; }
@keyframes ownerCloudPanelIn {
    from {
        opacity: .45;
        filter: blur(3px);
        transform: translateX(var(--owner-panel-shift, 16px)) scale(.988);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0) scale(1);
    }
}
@keyframes ownerCloudHeaderIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
body.cloud-owner-lab #cloudView.active-view .owner-cloud-switcher { animation: ownerCloudHeaderIn .3s ease both; }

body.dark-mode.cloud-owner-lab .cloud-page-heading {
    background: linear-gradient(135deg, rgba(255, 177, 97, .075), var(--surface) 48%);
}
body.dark-mode.cloud-owner-lab .owner-cloud-switcher {
    border-color: rgba(255, 255, 255, .1);
    background: linear-gradient(135deg, rgba(38, 31, 27, .96), rgba(15, 17, 21, .94));
}
body.dark-mode.cloud-owner-lab .owner-cloud-switcher-copy strong { color: #f6f7f9; }
body.dark-mode.cloud-owner-lab .owner-cloud-switcher-tabs button.active { color: #111317; background: transparent; }

@media (max-width: 1000px) {
    body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-vault { grid-template-columns: minmax(0, 1fr); }
    body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-vault > [data-owner-cloud-panel="storage"] { min-height: auto; }
}

@media (max-width: 700px) {
    body.cloud-owner-lab #cloudView { padding-top: .35rem; padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
    body.cloud-owner-lab #cloudView::before { width: 100vw; height: 100%; top: 0; left: 50%; right: auto; }
    body.cloud-owner-lab .prototype-cloud-header {
        margin-bottom: .75rem;
        padding: 1rem;
        border: 1px solid var(--border);
        border-radius: 20px;
        background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface) 88%, var(--accent) 12%));
        box-shadow: 0 12px 32px rgba(17, 26, 43, .06);
    }
    body.cloud-owner-lab .prototype-cloud-header-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: var(--accent-subtle);
        color: var(--accent-hover);
    }
    body.cloud-owner-lab .prototype-cloud-header-copy > span { color: var(--accent-hover); }
    body.cloud-owner-lab .prototype-cloud-header-copy strong { font-size: 1.18rem; }
    body.cloud-owner-lab .prototype-cloud-header-copy p { max-width: 230px; margin-top: .22rem; font-size: .67rem; line-height: 1.4; }
    body.cloud-owner-lab .owner-cloud-switcher {
        position: sticky;
        z-index: 4;
        top: calc(7px + env(safe-area-inset-top));
        margin-bottom: .75rem;
        padding: .35rem;
        border-radius: 22px;
    }
    body.cloud-owner-lab .owner-cloud-switcher-copy {
        display: flex;
        flex: 0 0 auto;
        padding-left: .4rem;
        gap: .25rem;
    }
    body.cloud-owner-lab .owner-cloud-switcher-copy span { font-size: .52rem; }
    body.cloud-owner-lab .owner-cloud-switcher-copy strong { font-size: .68rem; }
    body.cloud-owner-lab .owner-cloud-switcher-tabs {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .25rem;
    }
    body.cloud-owner-lab .owner-cloud-switcher-tabs::before { width: calc((100% - .5rem) / 3); }
    body.cloud-owner-lab .owner-cloud-switcher-tabs[data-active-mode="private"]::before { transform: translateX(calc(100% + .25rem)); }
    body.cloud-owner-lab .owner-cloud-switcher-tabs[data-active-mode="share"]::before { transform: translateX(calc(200% + .5rem)); }
    body.cloud-owner-lab .owner-cloud-switcher-tabs button {
        min-width: 0;
        min-height: 48px;
        padding: 0 .35rem;
        flex-direction: column;
        gap: .16rem;
        border-radius: 13px;
        font-size: .57rem;
    }
    body.cloud-owner-lab .owner-cloud-switcher-tabs svg { width: 17px; height: 17px; flex-basis: 17px; }
    body.cloud-owner-lab #cloudUnlockedZone { gap: .75rem; }
    body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-vault { grid-template-columns: 1fr; }
    body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-vault > [data-owner-cloud-panel="storage"],
    body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-vault > [data-owner-cloud-panel="files"],
    body.cloud-owner-lab #cloudUnlockedZone.owner-cloud-mode-vault > [data-owner-cloud-panel="donations"] { display: block !important; }
    body.cloud-owner-lab #cloudUnlockedZone > .cloud-card,
    body.cloud-owner-lab #cloudUnlockedZone > .cloud-panel { border-radius: 21px; }
    body.cloud-owner-lab #cloudUnlockedZone > [data-owner-cloud-panel="storage"] { padding: 1.15rem; }
    body.cloud-owner-lab #cloudUnlockedZone > [data-owner-cloud-panel="storage"] h3 { margin-bottom: .65rem; font-size: .72rem; }
    body.cloud-owner-lab .storage-chart-wrap { margin: .8rem 0; }
    body.cloud-owner-lab .upload-zone { margin-top: .75rem; }
    body.cloud-owner-lab #cloudView .drop-zone { min-height: 76px; margin-top: .65rem; padding: .8rem; }
    body.cloud-owner-lab #cloudUnlockedZone > [data-owner-cloud-panel="files"] { padding: 1.15rem; }
    body.cloud-owner-lab #cloudView .file-list { max-height: none; }
    body.cloud-owner-lab .private-folders-feature { border-radius: 21px; }
    body.cloud-owner-lab .temp-share-panel { padding: 1.15rem; }
}

body.no-animations.cloud-owner-lab .owner-cloud-panel-enter,
body.no-animations.cloud-owner-lab #cloudView.active-view .owner-cloud-switcher { animation: none !important; }
body.no-animations.cloud-owner-lab .owner-cloud-switcher-tabs::before { transition: none !important; }
body.no-animations.cloud-owner-lab .owner-cloud-switcher-tabs button.active svg { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
    body.cloud-owner-lab .owner-cloud-panel-enter,
    body.cloud-owner-lab #cloudView.active-view .owner-cloud-switcher { animation: none !important; }
    body.cloud-owner-lab .owner-cloud-switcher-tabs::before { transition: none !important; }
    body.cloud-owner-lab .owner-cloud-switcher-tabs button.active svg { animation: none !important; }
}
