.psoo-media-hub {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e3ecff;
    background: radial-gradient(circle at top left, #1f2b46 0%, #0c1628 55%, #050a18 100%);
    min-height: 100%;
    padding: 40px clamp(16px, 4vw, 48px);
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
}
.psoo-media-hub *,
.psoo-media-hub *::before,
.psoo-media-hub *::after {
    box-sizing: border-box;
}
.psoo-media-hub h1,
.psoo-media-hub h2,
.psoo-media-hub h3,
.psoo-media-hub h4,
.psoo-media-hub h5,
.psoo-media-hub h6 {
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: inherit;
    margin: 0;
}
.psoo-media-hub p {
    margin: 0;
    color: rgba(227, 236, 255, 0.78);
    line-height: 1.55;
}
.psoo-media-hub button,
.psoo-media-hub input,
.psoo-media-hub select,
.psoo-media-hub textarea {
    font-family: inherit;
    line-height: 1.2;
}
.psoo-media-hub .button,
.psoo-media-hub button {
    font-family: inherit;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    line-height: 1.2;
    min-height: 36px;
}
.psoo-media-hub .button::before,
.psoo-media-hub .button::after,
.psoo-media-hub .button:before,
.psoo-media-hub .button:after,
.psoo-media-hub button::before,
.psoo-media-hub button::after,
.psoo-media-hub button:before,
.psoo-media-hub button:after {
    display: none !important;
    content: none !important;
}
.psoo-media-hub button > span[class*="youzify"],
.psoo-media-hub .button > span[class*="youzify"] {
    display: none !important;
}
.psoo-media-hub .button:hover,
.psoo-media-hub button:hover,
.psoo-media-hub .button:focus,
.psoo-media-hub button:focus {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #5aa8ff, #94f7ff);
    box-shadow: 0 14px 28px rgba(63, 140, 255, 0.35);
    color: #041022;
}

.psoo-files-active .youzify-group-sidebar,
.psoo-files-active .youzify-layout-sidebar,
.psoo-files-active .yz-group-sidebar,
.psoo-files-active .yz-group-column-left,
.psoo-files-active .yz-group-column-right,
.psoo-files-active .youzify-right-sidebar-layout .youzify-right-sidebar,
.psoo-files-active .gdc-media-sidebar {
    display: none !important;
    visibility: hidden !important;
}

.psoo-files-active .youzify-right-sidebar-layout,
.psoo-files-active .youzify-right-layout,
.psoo-files-active .youzify-main-column {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    display: block !important;
}

.psoo-files-active .youzify-group-layout,
.psoo-files-active .youzify-layout-columns,
.psoo-files-active .youzify-right-layout,
.psoo-files-active .youzify-main-column,
.psoo-files-active .yz-group-layout,
.psoo-files-active .bp-wrap,
.psoo-files-active .youzify-group-content,
.psoo-files-active .yz-group-column-center {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.psoo-media-layout {
    display: grid;
    gap: clamp(24px, 3vw, 48px);
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
    width: 100%;
}

@media (max-width: 980px) {
    .psoo-media-layout {
        grid-template-columns: 1fr;
    }
}

/* Glassy shells --------------------------------------------------------- */
.psoo-media-sidebar,
.psoo-media-content {
    background: linear-gradient(135deg, rgba(20, 32, 53, 0.85), rgba(30, 50, 83, 0.55));
    border-radius: 22px;
    border: 1px solid rgba(122, 160, 255, 0.25);
    box-shadow: 0 18px 45px rgba(5, 12, 28, 0.45);
    backdrop-filter: blur(24px);
    padding: clamp(20px, 3vw, 32px);
    width: 100%;
    box-sizing: border-box;
}

.psoo-media-sidebar {
    margin: 0;
}

/* Sidebar --------------------------------------------------------------- */
.psoo-media-sidebar .psoo-folder-form {
    display: grid;
    gap: 16px;
    margin-bottom: clamp(20px, 4vw, 36px);
}

.psoo-folder-card {
    position: relative;
    padding: clamp(20px, 3vw, 28px);
    background: linear-gradient(145deg, rgba(13, 24, 44, 0.85), rgba(24, 44, 73, 0.6));
    border-radius: 22px;
    border: 1px solid rgba(122, 160, 255, 0.25);
    box-shadow: inset 0 0 0 1px rgba(91, 143, 255, 0.18), 0 18px 40px rgba(5, 12, 28, 0.35);
    overflow: hidden;
}

.psoo-folder-card::after {
    content: "";
    position: absolute;
    inset: -40% 30% 40% -30%;
    background: radial-gradient(circle at center, rgba(119, 242, 255, 0.22), transparent 60%);
    opacity: 0.5;
    pointer-events: none;
}

.psoo-folder-card__header {
    position: relative;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr;
    align-items: center;
    margin-bottom: clamp(18px, 3vw, 26px);
}

.psoo-folder-card__glyph {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(119, 242, 255, 0.35), rgba(63, 140, 255, 0.22));
    border: 1px solid rgba(122, 160, 255, 0.35);
    box-shadow: 0 18px 32px rgba(9, 17, 37, 0.45), inset 0 0 18px rgba(119, 242, 255, 0.25);
}

.psoo-folder-card__glyph svg {
    width: 36px;
    height: 36px;
}

.psoo-folder-card__intro h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fbfeff;
}

.psoo-folder-card__intro p {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(225, 235, 255, 0.7);
}
.psoo-folder-card__actions {
    margin-bottom: clamp(18px, 3vw, 26px);
    display: grid;
    gap: 12px;
    padding-inline: clamp(6px, 2vw, 18px);
}

.psoo-folder-card .psoo-folder-create-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 22px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: clamp(14px, 2.2vw, 18px) clamp(20px, 3.2vw, 28px);
    border-radius: 999px;
    border: 1px solid rgba(120, 206, 255, 0.45);
    background: linear-gradient(135deg, rgba(111, 247, 255, 0.28), rgba(116, 139, 255, 0.46));
    color: #061229;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 22px 46px rgba(93, 162, 255, 0.35);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
}

.psoo-folder-card .psoo-folder-create-button__label {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #061229;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.psoo-folder-card .psoo-folder-create-button:hover,
.psoo-folder-card .psoo-folder-create-button:focus {
    transform: translateY(-3px);
    border-color: rgba(168, 236, 255, 0.85);
    background: linear-gradient(135deg, rgba(111, 247, 255, 0.45), rgba(116, 139, 255, 0.68));
    box-shadow: 0 28px 56px rgba(93, 162, 255, 0.42);
    outline: none;
}
.psoo-primary-trigger,
.psoo-secondary-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    min-height: 42px;
    padding: 10px 22px;
    border: none;
}
.psoo-primary-trigger {
    background: linear-gradient(135deg, #3f8cff, #77f2ff);
    color: #041022;
    box-shadow: 0 16px 32px rgba(63, 140, 255, 0.4);
}
.psoo-primary-trigger:hover,
.psoo-primary-trigger:focus {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(63, 140, 255, 0.55);
}
.psoo-secondary-trigger {
    background: rgba(15, 24, 46, 0.7);
    border: 1px solid rgba(123, 181, 255, 0.35);
    color: rgba(227, 236, 255, 0.85);
}
.psoo-secondary-trigger:hover,
.psoo-secondary-trigger:focus {
    background: rgba(63, 140, 255, 0.45);
    border-color: rgba(119, 242, 255, 0.8);
    color: #041022;
    transform: translateY(-1px);
}

.psoo-primary-trigger,
.psoo-secondary-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    min-height: 42px;
    padding: 10px 22px;
    border: none;
}

.psoo-primary-trigger {
    background: linear-gradient(135deg, #3f8cff, #77f2ff);
    color: #041022;
    box-shadow: 0 16px 32px rgba(63, 140, 255, 0.4);
}

.psoo-primary-trigger:hover,
.psoo-primary-trigger:focus {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(63, 140, 255, 0.55);
}

.psoo-secondary-trigger {
    background: rgba(15, 24, 46, 0.7);
    border: 1px solid rgba(123, 181, 255, 0.35);
    color: rgba(227, 236, 255, 0.85);
}

.psoo-secondary-trigger:hover,
.psoo-secondary-trigger:focus {
    background: rgba(63, 140, 255, 0.45);
    border-color: rgba(119, 242, 255, 0.8);
    color: #041022;
    transform: translateY(-1px);
}

.psoo-folder-card__body {
    position: relative;
    display: grid;
    gap: 18px;
}

.psoo-folder-form {
    display: grid;
    gap: clamp(18px, 3vw, 28px);
}

.psoo-folder-field {
    position: relative;
    display: grid;
    gap: 12px;
    padding: clamp(16px, 2.4vw, 22px);
    border-radius: 20px;
    border: 1px solid rgba(120, 160, 255, 0.28);
    background: linear-gradient(140deg, rgba(14, 27, 50, 0.92), rgba(24, 44, 78, 0.78));
    box-shadow: inset 0 0 0 1px rgba(96, 140, 255, 0.16), 0 18px 40px rgba(2, 6, 18, 0.45);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.psoo-folder-field::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(119, 242, 255, 0.16), transparent 62%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.psoo-folder-label-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: rgba(174, 202, 255, 0.78);
}

.psoo-folder-field input,
.psoo-folder-field select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(109, 148, 255, 0.35);
    background: rgba(11, 23, 46, 0.78);
    color: #f6f9ff;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.psoo-folder-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(119, 242, 255, 0.75) 50%), linear-gradient(135deg, rgba(119, 242, 255, 0.75) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 4px), calc(100% - 15px) calc(50% - 4px), calc(100% - 2.2em) 50%;
    background-size: 9px 9px, 9px 9px, 1px 3em;
    background-repeat: no-repeat;
    padding-right: 48px;
}

.psoo-folder-field input::placeholder,
.psoo-folder-field select::placeholder {
    color: rgba(214, 228, 255, 0.55);
}

.psoo-folder-field:focus-within {
    border-color: rgba(119, 242, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(119, 242, 255, 0.35), 0 24px 46px rgba(18, 62, 112, 0.52);
    background: linear-gradient(140deg, rgba(18, 39, 72, 0.96), rgba(34, 60, 101, 0.82));
}

.psoo-folder-field:focus-within::after {
    opacity: 1;
}

.psoo-folder-field:focus-within .psoo-folder-label-text {
    color: rgba(204, 236, 255, 0.9);
}

.psoo-folder-field:focus-within input,
.psoo-folder-field:focus-within select {
    border-color: rgba(119, 242, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(119, 242, 255, 0.18);
    background: rgba(11, 30, 58, 0.86);
    transform: translateY(-1px);
}

.psoo-folder-submit {
    justify-self: start;
    border-radius: 999px;
    border: none;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3f8cff, #77f2ff);
    color: #050913;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psoo-folder-submit:hover,
.psoo-folder-submit:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(63, 140, 255, 0.35);
}

.psoo-folder-tree {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.psoo-folder-item {
    --depth: 0;
}

.psoo-folder-line {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.psoo-folder-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    padding: 11px 16px;
    padding-left: calc(18px + (var(--depth) * 20px));
    border-radius: 16px;
    border: 1px solid rgba(74, 80, 112, 0.35);
    background: rgba(8, 14, 32, 0.72);
    color: rgba(237, 243, 255, 0.88);
    cursor: pointer;
    font-size: 15px;
    line-height: 1.45;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    width: 100%;
    max-width: 100%;
}

.psoo-folder-btn:hover,
.psoo-folder-btn:focus {
    border-color: rgba(79, 176, 255, 0.55);
    background: rgba(18, 32, 58, 0.78);
    transform: translateX(6px);
    box-shadow: 0 18px 36px rgba(6, 12, 26, 0.45);
}

.psoo-folder-btn.is-active {
    border-color: rgba(79, 176, 255, 0.75);
    background: linear-gradient(135deg, rgba(79, 176, 255, 0.42), rgba(28, 229, 208, 0.24));
    color: #f7fbff;
    font-weight: 600;
    box-shadow: 0 22px 44px rgba(5, 12, 26, 0.5);
}

.psoo-folder-name {
    font-weight: 600;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.4;
}

.psoo-folder-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    align-self: center;
}

.psoo-folder-action {
    min-width: 34px;
    min-height: 34px;
    border-radius: 11px;
    border: 1px solid rgba(210, 235, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(240, 248, 255, 0.88);
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.psoo-folder-action:hover,
.psoo-folder-action:focus {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.16);
    color: #041021;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6, 12, 26, 0.35);
}

.psoo-browser-controls {
    margin-bottom: clamp(20px, 4vw, 32px);
}

.psoo-media-search-input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid rgba(109, 148, 255, 0.4);
    background: rgba(10, 18, 36, 0.6);
    color: #f2f7ff;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.psoo-media-search-input:focus {
    outline: none;
    border-color: rgba(119, 242, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(119, 242, 255, 0.25);
    background: rgba(17, 28, 55, 0.7);
}

.psoo-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.psoo-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(130, 145, 178, 0.3);
    background: rgba(18, 26, 48, 0.72);
    color: rgba(225, 233, 247, 0.78);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.psoo-filter-btn:hover,
.psoo-filter-btn:focus {
    border-color: rgba(79, 176, 255, 0.55);
    color: #f3f8ff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(5, 12, 25, 0.38);
}

.psoo-filter-btn.is-active {
    border-color: rgba(79, 176, 255, 0.8);
    background: linear-gradient(135deg, rgba(79, 176, 255, 0.35), rgba(28, 229, 208, 0.28));
    color: #041021;
    font-weight: 600;
    box-shadow: 0 16px 34px rgba(5, 12, 25, 0.4);
}

.psoo-filter-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.psoo-filter-icon svg {
    width: 100%;
    height: 100%;
}

.psoo-filter-text {
    display: inline-block;
}

.psoo-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.psoo-media-notice {
    border-radius: 18px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
    background: rgba(34, 52, 88, 0.45);
    color: #e7f0ff;
    margin-bottom: clamp(16px, 3vw, 28px);
}

.psoo-media-notice.is-success {
    border-color: rgba(84, 230, 197, 0.6);
    background: rgba(42, 122, 107, 0.65);
    color: #dffcf6;
}

.psoo-media-notice.is-error {
    border-color: rgba(255, 123, 184, 0.65);
    background: rgba(109, 28, 64, 0.7);
    color: #ffe6f1;
}

/* Upload panel ---------------------------------------------------------- */
.psoo-upload-form {
    border-radius: 18px;
    padding: clamp(18px, 3vw, 26px);
    background: linear-gradient(145deg, rgba(29, 44, 73, 0.75), rgba(19, 30, 53, 0.55));
    border: 1px solid rgba(123, 181, 255, 0.25);
    margin-bottom: clamp(22px, 3vw, 36px);
}

.psoo-upload-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.psoo-upload-fields input[type="file"] {
    flex: 1 1 240px;
    color: rgba(227, 236, 255, 0.85);
}

.psoo-upload-fields select {
    min-width: 180px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(109, 148, 255, 0.4);
    background: rgba(10, 18, 36, 0.65);
    color: #f2f7ff;
}

.psoo-upload-fields .button {
    border-radius: 999px;
    padding: 10px 22px;
    border: none;
    background: linear-gradient(135deg, #3f8cff, #77f2ff);
    color: #041022;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psoo-upload-fields .button:hover,
.psoo-upload-fields .button:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(63, 140, 255, 0.45);
}

@media (max-width: 720px) {
    .psoo-upload-fields {
        flex-direction: column;
        align-items: stretch;
    }

    .psoo-upload-fields input[type="file"],
    .psoo-upload-fields select,
    .psoo-upload-fields .button {
        width: 100%;
    }
}

/* Media browser --------------------------------------------------------- */
.psoo-media-status {
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(227, 236, 255, 0.55);
}

.psoo-media-grid {
    display: grid;
    gap: clamp(16px, 3vw, 24px);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.psoo-media-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(20, 32, 53, 0.9), rgba(14, 24, 43, 0.75));
    border: 1px solid rgba(123, 181, 255, 0.18);
    box-shadow: 0 18px 40px rgba(5, 12, 28, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.psoo-media-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(119, 242, 255, 0.2), transparent 55%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.psoo-media-card:hover,
.psoo-media-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(9, 17, 37, 0.5);
}

.psoo-media-card:hover::after,
.psoo-media-card:focus-within::after {
    opacity: 1;
}

.psoo-media-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, rgba(63, 140, 255, 0.25), rgba(119, 242, 255, 0.15));
    overflow: hidden;
}

.psoo-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
}

.psoo-media-thumb-fallback {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(223, 245, 255, 0.85);
}

.psoo-media-body {
    padding: clamp(16px, 3vw, 22px);
    display: grid;
    gap: 12px;
}

.psoo-media-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #f0f5ff;
}

.psoo-media-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: rgba(227, 236, 255, 0.6);
}

.psoo-media-meta-item {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(12, 22, 42, 0.75);
    border: 1px solid rgba(109, 148, 255, 0.25);
}

.psoo-media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.psoo-media-actions .button {
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 12px;
    border: 1px solid rgba(109, 148, 255, 0.4);
    background: rgba(17, 29, 51, 0.6);
    color: #e3ecff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.psoo-media-actions .button:hover,
.psoo-media-actions .button:focus {
    border-color: rgba(119, 242, 255, 0.9);
    background: rgba(63, 140, 255, 0.45);
    color: #041022;
}

.psoo-media-move {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(227, 236, 255, 0.6);
}

.psoo-media-move select {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(109, 148, 255, 0.35);
    background: rgba(12, 22, 42, 0.7);
    color: #f2f7ff;
}

body.psoo-modal-open {
    overflow: hidden;
}

.psoo-modal {
    position: fixed !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 5vw, 48px);
    z-index: 9999 !important;
}

.psoo-modal.is-open {
    display: flex !important;
}

.psoo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 25, 0.65);
    backdrop-filter: blur(12px);
}

.psoo-modal__dialog {
    position: relative;
    width: min(70vw, 920px);
    max-width: 920px;
    max-height: min(90vh, 720px);
    margin: 0 auto;
    background: rgba(13, 24, 44, 0.92);
    border-radius: 24px;
    border: 1px solid rgba(123, 181, 255, 0.3);
    box-shadow: 0 24px 60px rgba(3, 6, 18, 0.6);
    padding: clamp(24px, 4vw, 36px);
    color: #f0f5ff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.psoo-modal__content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: clamp(8px, 2vw, 18px);
    padding-bottom: clamp(8px, 2vw, 18px);
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 181, 255, 0.55) rgba(14, 24, 46, 0.85);
}

.psoo-modal__content::-webkit-scrollbar {
    width: 8px;
}

.psoo-modal__content::-webkit-scrollbar-track {
    background: rgba(14, 24, 46, 0.85);
    border-radius: 999px;
}

.psoo-modal__content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(123, 181, 255, 0.72), rgba(119, 242, 255, 0.65));
    border-radius: 999px;
}

.psoo-modal__content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(140, 196, 255, 0.88), rgba(119, 242, 255, 0.78));
}

.psoo-modal__dialog--preview {
    width: min(98vw, 1400px);
    max-height: 95vh;
    background: radial-gradient(circle at top left, rgba(119, 242, 255, 0.18), rgba(13, 24, 46, 0.92));
    border: 1px solid rgba(118, 188, 255, 0.35);
    box-shadow: 0 28px 70px rgba(6, 12, 28, 0.55);
}

.psoo-preview-shell {
    flex: 1 1 auto;
    display: grid;
    gap: clamp(18px, 4vw, 32px);
    grid-template-columns: minmax(0, 3.5fr) minmax(280px, 1fr);
    height: 100%;
    overflow: hidden;
}

@media (max-width: 960px) {
    .psoo-preview-shell {
        grid-template-columns: 1fr;
        gap: clamp(16px, 4vw, 24px);
    }

    .psoo-modal__dialog--preview {
        padding: clamp(18px, 4vw, 28px);
    }
}

.psoo-preview-stage {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(10, 22, 44, 0.95), rgba(22, 52, 92, 0.8));
    border: 1px solid rgba(127, 200, 255, 0.28);
    padding: clamp(18px, 3vw, 28px);
    overflow: auto;
    box-shadow: inset 0 0 0 1px rgba(127, 200, 255, 0.16), 0 18px 40px rgba(3, 10, 28, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.psoo-preview-stage::-webkit-scrollbar {
    width: 12px;
}

.psoo-preview-stage::-webkit-scrollbar-track {
    background: rgba(12, 22, 44, 0.85);
    border-radius: 999px;
}

.psoo-preview-stage::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(98, 176, 255, 0.85), rgba(112, 244, 255, 0.68));
    border-radius: 999px;
}

.psoo-preview-media {
    max-width: 100%;
    max-height: 100%;
    border-radius: 18px;
    box-shadow: 0 25px 45px rgba(6, 12, 26, 0.5);
}

.psoo-preview-media--audio {
    width: 100%;
    display: flex;
    justify-content: center;
}

.psoo-preview-media--audio audio {
    width: 100%;
}

.psoo-preview-placeholder {
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(199, 224, 255, 0.72);
}

.psoo-preview-generic {
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
    color: rgba(225, 236, 255, 0.82);
}

.psoo-preview-generic__icon {
    font-size: 42px;
}

.psoo-preview-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 18px;
    border: 1px solid rgba(127, 200, 255, 0.5);
    background: rgba(10, 22, 44, 0.7);
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.psoo-preview-download:hover,
.psoo-preview-download:focus {
    border-color: rgba(119, 242, 255, 0.85);
    background: rgba(63, 140, 255, 0.45);
    color: #041022;
}

.psoo-preview-meta {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(127, 200, 255, 0.32);
    background: linear-gradient(160deg, rgba(12, 22, 44, 0.95), rgba(15, 36, 72, 0.82));
    padding: clamp(18px, 3vw, 24px);
    display: grid;
    gap: 16px;
    overflow: auto;
    box-shadow: inset 0 0 0 1px rgba(127, 200, 255, 0.12);
}

.psoo-preview-title {
    margin: 0;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f6faff;
}

.psoo-preview-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(219, 231, 255, 0.78);
}

.psoo-preview-meta-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.psoo-preview-meta__label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(144, 190, 255, 0.7);
    margin-bottom: 4px;
}

.psoo-preview-meta__value {
    font-size: 14px;
    font-weight: 600;
    color: rgba(233, 241, 255, 0.9);
}

.psoo-preview-meta__value--author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.psoo-preview-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(20, 35, 60, 0.45);
}

.psoo-preview-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.psoo-preview-author-name {
    font-weight: 600;
    color: rgba(233, 241, 255, 0.92);
    text-decoration: none;
}

.psoo-preview-author-name:hover,
.psoo-preview-author-name:focus {
    color: #78faff;
}

.psoo-preview-action-row {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
}

.psoo-preview-download,
.psoo-preview-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 20px;
    border: 1px solid rgba(127, 200, 255, 0.35);
    background: rgba(10, 22, 44, 0.6);
    color: #f5fbff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.psoo-preview-download:hover,
.psoo-preview-download:focus,
.psoo-preview-open:hover,
.psoo-preview-open:focus {
    border-color: rgba(119, 242, 255, 0.85);
    background: rgba(63, 140, 255, 0.45);
    color: #041022;
}

.psoo-folder-modal__header {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 28px);
    margin-bottom: clamp(16px, 3vw, 26px);
}

.psoo-folder-modal__glyph {
    flex: 0 0 auto;
    width: clamp(68px, 8vw, 88px);
    height: clamp(68px, 8vw, 88px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(140deg, rgba(119, 242, 255, 0.2), rgba(127, 92, 255, 0.22));
    border: 1px solid rgba(138, 196, 255, 0.45);
    box-shadow: inset 0 0 22px rgba(127, 92, 255, 0.35), 0 22px 44px rgba(8, 16, 28, 0.45);
}

.psoo-folder-modal__glyph svg {
    width: clamp(48px, 6vw, 64px);
    height: clamp(48px, 6vw, 64px);
}

.psoo-folder-modal__titles {
    display: grid;
    gap: 6px;
}

.psoo-folder-modal__eyebrow {
    font-size: 12px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(174, 202, 255, 0.68);
}

.psoo-folder-modal__titles h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.psoo-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: none;
    background: transparent;
    color: rgba(227, 236, 255, 0.65);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 15;
}

.psoo-modal__close:hover,
.psoo-modal__close:focus {
    color: #ffffff;
    transform: scale(1.1);
}

.psoo-modal__subtitle {
    margin: 8px 0 24px;
    font-size: 14px;
    color: rgba(227, 236, 255, 0.7);
    line-height: 1.6;
}

.psoo-modal__subtitle strong {
    color: rgba(255, 255, 255, 0.85);
}

.psoo-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.psoo-button-filled,
.psoo-button-outlined {
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.psoo-button-filled {
    background: linear-gradient(135deg, #3f8cff, #77f2ff);
    border: none;
    color: #041022;
    box-shadow: 0 16px 30px rgba(63, 140, 255, 0.35);
}

.psoo-button-filled:hover,
.psoo-button-filled:focus {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(63, 140, 255, 0.55);
}

.psoo-button-outlined {
    background: transparent;
    border: 1px solid rgba(123, 181, 255, 0.45);
    color: rgba(227, 236, 255, 0.8);
}

.psoo-button-outlined:hover,
.psoo-button-outlined:focus {
    border-color: rgba(119, 242, 255, 0.85);
    color: #ffffff;
}

.psoo-drop-zone {
    border: 1.5px dashed rgba(119, 242, 255, 0.45);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 36px);
    text-align: center;
    background: rgba(14, 28, 52, 0.6);
    color: rgba(227, 236, 255, 0.75);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.psoo-drop-zone.is-dragover {
    border-color: rgba(119, 242, 255, 0.9);
    background: rgba(15, 32, 60, 0.85);
    transform: translateY(-2px);
}

.psoo-drop-zone.has-file {
    border-style: solid;
    border-color: rgba(123, 181, 255, 0.9);
}

.psoo-drop-zone.is-focused,
.psoo-drop-zone.is-highlighted {
    border-color: rgba(119, 242, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(119, 242, 255, 0.25);
}

.psoo-drop-zone.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.psoo-drop-zone__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    color: rgba(119, 242, 255, 0.85);
}

.psoo-drop-zone__icon svg {
    width: 100%;
    height: 100%;
}

.psoo-drop-zone__headline {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.psoo-drop-zone__text {
    margin: 6px 0 10px;
    font-size: 13px;
}

.psoo-drop-zone__action {
    color: #77f2ff;
    font-weight: 600;
    text-decoration: underline;
}

.psoo-upload-filename {
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(227, 236, 255, 0.7);
}

/* Pagination ------------------------------------------------------------ */
.psoo-media-pagination {
    margin-top: clamp(24px, 3vw, 36px);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.psoo-page-btn {
    border-radius: 12px;
    padding: 8px 15px;
    font-size: 13px;
    border: 1px solid rgba(109, 148, 255, 0.4);
    background: rgba(10, 18, 36, 0.6);
    color: rgba(227, 236, 255, 0.7);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.psoo-page-btn:hover,
.psoo-page-btn:focus {
    border-color: rgba(123, 181, 255, 0.8);
    color: #ffffff;
    transform: translateY(-1px);
}

.psoo-page-btn.is-active {
    border-color: rgba(119, 242, 255, 0.95);
    background: linear-gradient(135deg, rgba(63, 140, 255, 0.95), rgba(119, 242, 255, 0.95));
    color: #041022;
    font-weight: 600;
}


.psoo-folder-search {
    margin-bottom: clamp(16px, 3vw, 24px);
}

.psoo-folder-search input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(109, 148, 255, 0.35);
    background: rgba(10, 20, 40, 0.75);
    color: #f6f9ff;
    font-size: 14px;
}

.psoo-media-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: clamp(16px, 3vw, 24px);
}

.psoo-media-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.psoo-media-title-heading {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f5f8ff;
}

.psoo-media-title-edit {
    position: relative;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 24px 10px 20px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, rgba(109, 240, 255, 0.96), rgba(127, 92, 255, 0.94));
    color: #061229;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    min-height: 46px;
    box-shadow: 0 22px 42px rgba(88, 178, 255, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.psoo-media-title-edit::before {
    content: "";
    position: absolute;
    inset: -40% -60% auto -18%;
    height: 160%;
    background: radial-gradient(circle at left, rgba(255, 255, 255, 0.48), transparent 58%);
    opacity: 0.72;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.psoo-media-title-edit:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.psoo-media-title-edit:hover,
.psoo-media-title-edit:focus {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 28px 52px rgba(88, 178, 255, 0.45);
    filter: brightness(1.06);
}

.psoo-media-title-edit:hover::before,
.psoo-media-title-edit:focus::before {
    transform: translateX(8%);
    opacity: 0.92;
}

.psoo-media-settings-trigger__icon {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 20px rgba(255, 255, 255, 0.22);
    color: #061229;
}

.psoo-media-settings-trigger__icon svg {
    width: 14px;
    height: 14px;
}

.psoo-media-settings-trigger__label {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.psoo-media-folder-tree {
    display: grid;
    gap: 18px;
    margin-bottom: clamp(18px, 3vw, 28px);
    padding: clamp(16px, 3vw, 26px);
    border-radius: 20px;
    border: 1px solid rgba(54, 85, 128, 0.28);
    background: linear-gradient(160deg, rgba(8, 16, 28, 0.9), rgba(16, 32, 58, 0.75));
    box-shadow: inset 0 0 0 1px rgba(79, 176, 255, 0.08), 0 28px 48px rgba(6, 12, 26, 0.42);
}

.psoo-media-folder-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.psoo-folder-crumb {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 24, 46, 0.7);
    color: rgba(222, 231, 247, 0.85);
    padding: 6px 14px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.psoo-folder-crumb:hover,
.psoo-folder-crumb:focus {
    border-color: rgba(148, 163, 184, 0.55);
    color: #f5f8ff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(5, 12, 24, 0.35);
}

.psoo-folder-crumb.is-active {
    border-color: rgba(79, 176, 255, 0.7);
    background: linear-gradient(135deg, rgba(79, 176, 255, 0.4), rgba(28, 229, 208, 0.28));
    color: #041021;
    font-weight: 700;
    box-shadow: 0 16px 34px rgba(8, 16, 28, 0.42);
}

.psoo-folder-crumb-sep {
    color: rgba(148, 163, 184, 0.45);
}

.psoo-media-folder-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.psoo-folder-children-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(200, 210, 228, 0.6);
}

.psoo-folder-child {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(13, 24, 48, 0.65);
    color: rgba(217, 225, 241, 0.88);
    padding: 6px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.psoo-folder-child:hover,
.psoo-folder-child:focus {
    border-color: rgba(79, 176, 255, 0.6);
    background: rgba(79, 176, 255, 0.25);
    color: #041021;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(6, 12, 24, 0.35);
}

.psoo-media-title-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(227, 236, 255, 0.65);
}

.psoo-media-title-visibility {
    color: rgba(227, 236, 255, 0.65);
}

.psoo-media-title-count {
    font-weight: 600;
    color: rgba(119, 242, 255, 0.85);
}

.psoo-inline-upload {
    margin-top: clamp(24px, 4vw, 36px);
    padding: clamp(18px, 3vw, 28px);
    background: rgba(14, 26, 48, 0.75);
    border-radius: 18px;
    border: 1px solid rgba(123, 181, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(63, 140, 255, 0.12);
    scroll-margin-top: 80px;
}

.psoo-inline-upload h3 {
    font-size: 16px;
    margin: 0 0 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #eaf2ff;
}

.psoo-inline-upload-copy {
    margin: 0 0 14px;
    font-size: 13px;
    color: rgba(227, 236, 255, 0.72);
}

.psoo-inline-upload-progress {
    margin: 12px 0 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(119, 242, 255, 0.75);
}

.psoo-inline-upload-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.psoo-button-filled--inline {
    min-width: 160px;
}

.psoo-inline-upload .psoo-button-filled[disabled] {
    opacity: 0.6;
    cursor: wait;
}

.psoo-folder-field.is-hidden {
    display: none;
}

.psoo-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
    pointer-events: none;
}

.psoo-toast {
    min-width: 220px;
    max-width: 320px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid rgba(123, 181, 255, 0.35);
    background: rgba(16, 28, 48, 0.9);
    color: #eaf2ff;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(6, 13, 28, 0.45);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
}

.psoo-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.psoo-toast--success {
    border-color: rgba(84, 230, 197, 0.6);
    background: rgba(18, 46, 42, 0.92);
    color: #dffcf6;
}

.psoo-toast--error {
    border-color: rgba(255, 123, 184, 0.65);
    background: rgba(71, 18, 38, 0.92);
    color: #ffe6f1;
}
/* Youzify overrides */
.psoo-files-active .psoo-folder-create-button {
    background: linear-gradient(135deg, rgba(125, 251, 255, 0.42), rgba(108, 124, 255, 0.62)) !important;
    border-color: rgba(173, 210, 255, 0.6) !important;
    color: #041022 !important;
    box-shadow: 0 28px 60px rgba(99, 162, 255, 0.45) !important;
}

.psoo-files-active .psoo-folder-create-button .psoo-folder-create-button__icon {
    background: rgba(255, 255, 255, 0.28) !important;
    color: #041022 !important;
}

.psoo-files-active .psoo-folder-create-button__label {
    color: #051631 !important;
}

.psoo-files-active .psoo-folder-create-button:hover,
.psoo-files-active .psoo-folder-create-button:focus {
    background: linear-gradient(135deg, rgba(125, 251, 255, 0.72), rgba(108, 124, 255, 0.86)) !important;
    border-color: rgba(255, 255, 255, 0.82) !important;
}

.psoo-files-active .psoo-folder-btn {
    border: 1px solid rgba(74, 80, 112, 0.45) !important;
    background: rgba(8, 14, 32, 0.78) !important;
    color: rgba(237, 243, 255, 0.9) !important;
}

.psoo-files-active .psoo-folder-btn.is-active {
    border-color: rgba(79, 176, 255, 0.85) !important;
    background: linear-gradient(135deg, rgba(79, 176, 255, 0.46), rgba(28, 229, 208, 0.28)) !important;
    color: #ffffff !important;
}

.psoo-files-active .psoo-folder-crumb,
.psoo-files-active .psoo-folder-child {
    border-color: rgba(148, 163, 184, 0.38) !important;
    background: rgba(15, 24, 46, 0.74) !important;
    color: rgba(226, 236, 255, 0.86) !important;
}

.psoo-files-active .psoo-folder-crumb.is-active,
.psoo-files-active .psoo-folder-child:hover,
.psoo-files-active .psoo-folder-child:focus {
    border-color: rgba(79, 176, 255, 0.75) !important;
    background: rgba(79, 176, 255, 0.28) !important;
    color: #041021 !important;
}

.psoo-files-active .psoo-media-title-edit,
.psoo-files-active .psoo-folder-action {
    background: rgba(32, 44, 68, 0.82) !important;
    border: 1px solid rgba(88, 203, 255, 0.42) !important;
    color: rgba(210, 235, 255, 0.94) !important;
}

.psoo-files-active .psoo-filter-btn {
    border: 1px solid rgba(130, 145, 178, 0.36) !important;
    background: rgba(18, 26, 48, 0.79) !important;
    color: rgba(225, 233, 247, 0.82) !important;
}

.psoo-files-active .psoo-filter-btn.is-active {
    border-color: rgba(79, 176, 255, 0.88) !important;
    background: linear-gradient(135deg, rgba(79, 176, 255, 0.4), rgba(28, 229, 208, 0.3)) !important;
    color: #051423 !important;
}


