body.cloud-disk-page {
    margin: 0;
    height: 100dvh;
    min-height: 100dvh;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% 18%, rgba(57, 158, 255, 0.22), rgba(0, 0, 0, 0) 28%),
        radial-gradient(circle at 85% 8%, rgba(0, 73, 255, 0.18), rgba(0, 0, 0, 0) 24%),
        linear-gradient(180deg, #060a13 0%, #09111d 22%, #0d1930 100%);
    color: #eef5ff;
    overflow: hidden;
}

body.cloud-disk-page .steam-footer {
    display: none;
}

body.cloud-disk-page > main {
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100dvh - 62px);
}

.cloud-disk-main {
    width: min(1260px, 100%);
    max-width: 1260px;
    height: 100%;
    margin: 0 auto;
    padding: 10px 18px 14px;
    display: flex;
}

.cloud-disk-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(136, 183, 255, 0.14);
    border-radius: 30px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(18, 26, 44, 0.94), rgba(7, 12, 24, 0.98)),
        linear-gradient(135deg, rgba(38, 62, 104, 0.16), rgba(16, 22, 36, 0));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 30px 80px rgba(0, 0, 0, 0.5);
}

.cloud-disk-shell::before,
.cloud-disk-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.cloud-disk-shell::before {
    inset: 18px auto auto 24px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(52, 167, 255, 0.16), rgba(0, 0, 0, 0));
}

.cloud-disk-shell::after {
    inset: auto 40px 28px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(31, 102, 255, 0.12), rgba(0, 0, 0, 0));
}

.cloud-disk-layout {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.8fr);
    gap: 14px;
}

.cloud-disk-primary,
.cloud-disk-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.cloud-disk-panel {
    border: 1px solid rgba(132, 180, 255, 0.12);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(14, 20, 35, 0.92), rgba(10, 16, 30, 0.97));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 18px 38px rgba(0, 0, 0, 0.28);
}

.cloud-disk-summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 20px 22px;
}

.cloud-disk-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(166, 205, 255, 0.18);
    background: rgba(7, 12, 24, 0.72);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.cloud-disk-panel-label {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.cloud-disk-meta {
    margin: 4px 0 0;
    color: #a9b7d3;
    font-size: 0.88rem;
}

.cloud-disk-summary-size {
    align-self: end;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.cloud-disk-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cloud-disk-tab {
    border: 1px solid rgba(132, 180, 255, 0.12);
    border-radius: 14px;
    padding: 8px 14px;
    background: rgba(9, 15, 28, 0.72);
    color: #b8c7de;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.cloud-disk-tab.active {
    border-color: rgba(104, 174, 255, 0.4);
    background: linear-gradient(180deg, rgba(29, 67, 135, 0.9), rgba(16, 35, 73, 0.9));
    color: #f2f7ff;
}

.cloud-disk-files {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cloud-disk-files-status {
    margin: 0;
    color: #9fb1d0;
    font-size: 0.88rem;
}

.cloud-disk-file-list {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    gap: 12px;
    margin-top: 12px;
    overflow: hidden;
    align-content: start;
}

.cloud-disk-files-pagination {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    margin-top: 10px;
}

.cloud-disk-files-pagination.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.cloud-disk-page-btn {
    min-width: 94px;
    border: 1px solid rgba(123, 173, 255, 0.22);
    border-radius: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #e6f0ff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.cloud-disk-page-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.cloud-disk-page-info {
    color: #a9b7d3;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.cloud-disk-file-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    min-height: 92px;
    border: 1px solid rgba(99, 155, 255, 0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(12, 20, 37, 0.95), rgba(7, 12, 24, 0.92));
}

.cloud-disk-file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(244, 248, 255, 0.96), rgba(210, 224, 255, 0.92));
    box-shadow: inset 0 0 0 1px rgba(11, 25, 49, 0.1);
}

.cloud-disk-file-preview span {
    position: relative;
    width: 24px;
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(180deg, #44b7ff, #1f4dff);
}

.cloud-disk-file-preview span::before,
.cloud-disk-file-preview span::after {
    content: "";
    position: absolute;
}

.cloud-disk-file-preview span::before {
    inset: 4px 4px auto;
    height: 8px;
    border-radius: 3px;
    background: #ffd742;
}

.cloud-disk-file-preview span::after {
    inset: auto 5px 4px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.cloud-disk-file-preview[data-category="videos"] span {
    background: linear-gradient(180deg, #6a8bff, #3154ff);
}

.cloud-disk-file-preview[data-category="audio"] span {
    background: linear-gradient(180deg, #63dcff, #2e88ff);
}

.cloud-disk-file-preview[data-category="files"] span {
    background: linear-gradient(180deg, #5f7cff, #334cff);
}

.cloud-disk-file-name-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
}

.cloud-disk-file-name {
    display: -webkit-box;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}

.cloud-disk-file-subtitle {
    display: none;
}

.cloud-disk-file-meta,
.cloud-disk-file-actions {
    width: auto;
    min-width: auto;
    align-items: center;
    gap: 12px;
}

.cloud-disk-file-meta {
    display: flex;
    color: #d7e3ff;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cloud-disk-private-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    min-width: 150px;
    border-radius: 999px;
    background: rgba(37, 46, 66, 0.8);
    border: 1px solid rgba(255, 214, 87, 0.24);
    color: #ffe38e;
    font-size: 0.8rem;
    font-weight: 700;
}

.cloud-disk-private-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffd34d;
    box-shadow: 0 0 10px rgba(255, 211, 77, 0.65);
}

.cloud-disk-public-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    min-width: 150px;
    border-radius: 999px;
    background: rgba(28, 54, 68, 0.8);
    border: 1px solid rgba(96, 222, 255, 0.24);
    color: #9dedff;
    font-size: 0.8rem;
    font-weight: 700;
}

.cloud-disk-public-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #67e6ff;
    box-shadow: 0 0 10px rgba(103, 230, 255, 0.65);
}

.cloud-disk-file-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.cloud-disk-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #f2f6ff;
    cursor: pointer;
}

.cloud-disk-action-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.cloud-disk-empty-state {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 16px 0 0;
}

.cloud-disk-empty-state span {
    display: block;
    width: 100%;
    border-radius: 18px;
    border: 1px dashed rgba(92, 142, 230, 0.12);
    background: linear-gradient(90deg, rgba(12, 20, 37, 0.46), rgba(14, 26, 49, 0.14));
}

.cloud-disk-empty-state span:nth-child(1) {
    height: 120px;
}

.cloud-disk-empty-state span:nth-child(2) {
    height: 96px;
}

.cloud-disk-empty-state span:nth-child(3) {
    height: 132px;
}

.cloud-disk-queue,
.cloud-disk-storage {
    padding: 18px;
}

.cloud-disk-queue .cloud-disk-panel-label,
.cloud-disk-storage .cloud-disk-panel-label {
    font-size: 1.1rem;
}

.cloud-disk-upload-btn {
    margin-top: 12px;
    width: 100%;
    border: 1px solid rgba(96, 156, 255, 0.24);
    border-radius: 16px;
    padding: 11px 14px;
    background: linear-gradient(180deg, rgba(14, 30, 65, 0.92), rgba(9, 18, 34, 0.95));
    color: #edf4ff;
    font-weight: 700;
    cursor: pointer;
}

.cloud-disk-upload-btn:disabled {
    opacity: 0.68;
    cursor: wait;
}

.cloud-disk-upload-progress {
    position: relative;
    width: 100%;
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(114, 171, 255, 0.08);
}

.cloud-disk-upload-progress.is-hidden {
    visibility: hidden;
}

.cloud-disk-upload-progress.is-processing .cloud-disk-upload-progress-fill {
    background:
        linear-gradient(
            90deg,
            #59d8ff 0%,
            #3174ff 35%,
            #8adfff 50%,
            #3174ff 65%,
            #59d8ff 100%
        );
    background-size: 200% 100%;
    animation: cloud-disk-progress-shift 1s linear infinite;
}

.cloud-disk-upload-progress-fill {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #59d8ff, #3174ff);
    box-shadow: 0 0 12px rgba(64, 141, 255, 0.45);
    transition: width 0.12s linear;
}

@keyframes cloud-disk-progress-shift {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.cloud-disk-storage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cloud-disk-chart {
    width: min(100%, clamp(150px, 18vh, 220px));
    aspect-ratio: 1;
    margin: 12px auto 10px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 25% 25%, rgba(110, 225, 255, 0.16), rgba(0, 0, 0, 0) 34%),
        radial-gradient(circle at 72% 68%, rgba(48, 88, 255, 0.18), rgba(0, 0, 0, 0) 40%),
        linear-gradient(145deg, rgba(8, 13, 25, 0.92), rgba(13, 23, 43, 0.98));
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(114, 171, 255, 0.08);
}

.cloud-disk-chart::before {
    content: "";
    width: min(80%, 176px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        var(--cloud-disk-chart-fill, conic-gradient(from 210deg, #6be6ff 0 18%, #318bff 18% 58%, #183dff 58% 100%));
    box-shadow:
        0 18px 28px rgba(12, 38, 118, 0.35),
        inset -16px -20px 40px rgba(0, 0, 0, 0.14);
}

.cloud-disk-legend {
    display: grid;
    gap: 8px;
    font-size: 0.82rem;
    color: #dfe9ff;
    font-weight: 600;
}

.cloud-disk-legend-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
}

.cloud-disk-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(180deg, #67e1ff, #2f86ff);
    box-shadow: 0 0 12px rgba(71, 180, 255, 0.7);
}

.cloud-disk-legend-label {
    min-width: 0;
}

.cloud-disk-legend-value,
.cloud-disk-legend-share {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .cloud-disk-main {
        padding: 8px 14px 12px;
    }

    .cloud-disk-shell {
        padding: 14px;
        border-radius: 24px;
    }

    .cloud-disk-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cloud-disk-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    body.cloud-disk-page {
        min-height: auto;
        height: auto;
        overflow-y: auto;
    }

    body.cloud-disk-page > main {
        height: auto;
    }

    .cloud-disk-summary,
    .cloud-disk-file-row,
    .cloud-disk-legend {
        grid-template-columns: 1fr;
    }

    .cloud-disk-file-row {
        min-height: 0;
    }

    .cloud-disk-summary-size {
        white-space: normal;
    }

    .cloud-disk-file-meta,
    .cloud-disk-file-actions {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .cloud-disk-files {
        min-height: 0;
    }

    .cloud-disk-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .cloud-disk-main {
        padding: 8px 10px 12px;
    }

    .cloud-disk-panel-label {
        font-size: 1.05rem;
    }

    .cloud-disk-summary {
        padding: 14px;
    }

    .cloud-disk-files,
    .cloud-disk-queue,
    .cloud-disk-storage {
        padding: 14px;
    }

    .cloud-disk-file-row {
        padding: 12px;
    }

    .cloud-disk-files-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cloud-disk-page-btn {
        min-width: 0;
        flex: 1 1 120px;
    }

    .cloud-disk-tab {
        width: 100%;
        justify-content: center;
    }
}
