.fx-layout {
    display: grid;
    grid-template-columns: 262px 1fr;
    gap: 20px;
    align-items: start
}

/* ---------- sidebar ---------- */
.fx-sidebar {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    padding: 16px;
    position: sticky;
    top: 16px
}

.fx-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #38599b;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px
}

.fx-upload-btn:hover {
    background: #2f4c85;
    color: #fff
}

.fx-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #4a5464;
    font-size: 13.5px;
    text-decoration: none;
    margin-bottom: 3px
}

.fx-nav:hover {
    background: #f4f6f9;
    color: #4a5464
}

.fx-nav.is-active {
    background: #eef2fb;
    color: #38599b;
    font-weight: 600
}

.fx-nav i {
    width: 17px;
    font-size: 15px;
    flex-shrink: 0
}

.fx-count {
    margin-left: auto;
    background: #eef1f5;
    color: #697386;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center
}

.fx-nav.is-active .fx-count {
    background: #dde5f7;
    color: #38599b
}

.fx-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 700;
    color: #a8b0bd;
    margin: 18px 0 8px 12px
}

.fx-storage {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eef1f5
}

.fx-storage-head {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #697386;
    margin-bottom: 8px
}

.fx-storage-head strong {
    color: #1f2733;
    font-weight: 600
}

.fx-storage-bar {
    height: 7px;
    background: #eef1f5;
    border-radius: 5px;
    overflow: hidden
}

.fx-storage-fill {
    height: 100%;
    background: linear-gradient(90deg, #38599b, #5a7fc9);
    border-radius: 5px
}

.fx-storage-text {
    font-size: 11px;
    color: #a1a9b6;
    margin-top: 7px
}

/* ---------- main ---------- */
.fx-main {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    padding: 20px 22px
}

.fx-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px
}

.fx-crumbs {
    font-size: 13.5px;
    color: #697386;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap
}

.fx-crumbs a {
    color: #697386;
    text-decoration: none
}

.fx-crumbs a:hover {
    color: #38599b
}

.fx-crumbs a:last-of-type {
    color: #1f2733;
    font-weight: 600
}

.fx-crumbs .bi-chevron-right {
    font-size: 10px;
    color: #c2c9d4
}

.fx-title {
    color: #1f2733;
    font-weight: 600;
    font-size: 14px
}

.fx-search {
    position: relative
}

.fx-search i {
    position: absolute;
    left: 12px;
    top: 10px;
    color: #a8b0bd;
    font-size: 13px
}

.fx-search input {
    border: 1px solid #e2e7ee;
    border-radius: 9px;
    padding: 9px 12px 9px 33px;
    font-size: 12.5px;
    width: 230px;
    background: #fafbfc
}

.fx-search input:focus {
    outline: 0;
    border-color: #38599b;
    background: #fff
}

.fx-toggle {
    display: flex;
    background: #f1f4f8;
    border-radius: 9px;
    padding: 3px;
    gap: 2px
}

.fx-toggle-btn {
    border: 0;
    background: transparent;
    width: 34px;
    height: 31px;
    border-radius: 7px;
    color: #7b8496;
    cursor: pointer;
    font-size: 14px
}

.fx-toggle-btn.is-active {
    background: #fff;
    color: #1f2733;
    box-shadow: 0 1px 3px rgba(20, 30, 45, .14)
}

/* ---------- quick access ---------- */
.fx-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 26px
}

.fx-quick-card {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #fafbfc;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: .15s
}

.fx-quick-card:hover {
    background: #fff;
    border-color: #d5dde8;
    box-shadow: 0 4px 14px rgba(20, 30, 45, .07);
    color: inherit
}

.fx-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0
}

.fx-bg-doc {
    background: #eeebfd;
    color: #6c5ce7
}

.fx-bg-img {
    background: #e4f6ee;
    color: #26b47c
}

.fx-bg-vid {
    background: #e3f0fe;
    color: #3899f5
}

.fx-bg-aud {
    background: #f3e9fd;
    color: #a55eea
}

.fx-quick-card strong {
    display: block;
    font-size: 14px;
    color: #1f2733;
    margin-bottom: 2px
}

.fx-quick-card span {
    font-size: 11.5px;
    color: #8a94a6
}

.fx-heading {
    font-size: 13px;
    font-weight: 700;
    color: #3d4655;
    margin: 0 0 14px
}

/* ---------- grid cards ---------- */
.fx-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: 16px;
    margin-bottom: 28px
}

.fx-item {
    display: block !important;
    background: #fafbfc;
    border: 1px solid #eef1f5;
    border-radius: 13px;
    padding: 20px 14px 16px;
    text-align: center;
    text-decoration: none;
    color: #1f2733;
    position: relative;
    transition: .15s
}

.fx-item:hover {
    background: #fff;
    border-color: #d5dde8;
    box-shadow: 0 6px 18px rgba(20, 30, 45, .09);
    color: #1f2733
}

.fx-thumb {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 74px;
    font-size: 46px;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 9px
}

.fx-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px
}

.fx-folder-ico {
    color: #f5b942
}

.fx-ico-document {
    color: #6c5ce7
}

.fx-ico-image {
    color: #26b47c
}

.fx-ico-video {
    color: #3899f5
}

.fx-ico-audio {
    color: #a55eea
}

.fx-ico-other {
    color: #94a0b0
}

.fx-name {
    display: block !important;
    font-size: 13px;
    font-weight: 600;
    color: #1f2733;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.fx-meta {
    display: block !important;
    font-size: 11px;
    color: #98a1b0;
    margin-top: 4px
}

.fx-actions {
    display: flex !important;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
    opacity: 0;
    transition: opacity .15s
}

.fx-item:hover .fx-actions,
.fx-item:focus-within .fx-actions {
    opacity: 1
}

.fx-actions a,
.fx-actions button {
    border: 0;
    background: transparent;
    color: #98a1b0;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    padding: 0;
    line-height: 1
}

.fx-actions a:hover,
.fx-actions button:hover {
    color: #38599b
}

.fx-star.is-on {
    color: #f5b942
}

.fx-empty {
    text-align: center;
    padding: 48px 10px;
    color: #a8b0bd
}

.fx-empty i {
    font-size: 38px;
    display: block;
    margin-bottom: 12px;
    color: #ccd4e0
}

.fx-empty p {
    font-size: 13.5px;
    margin: 0
}

.fx-path-note {
    background: #f7f9fb;
    border: 1px solid #eef1f5;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 12.5px;
    color: #697386;
    margin-bottom: 14px
}

.fx-path-note strong {
    color: #1f2733
}

/* ---------- list mode ---------- */
.fx-layout.is-list .fx-grid {
    grid-template-columns: 1fr;
    gap: 8px
}

.fx-layout.is-list .fx-item {
    display: flex !important;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 11px 16px
}

.fx-layout.is-list .fx-thumb {
    margin: 0;
    height: 40px;
    width: 40px;
    font-size: 23px;
    flex-shrink: 0;
    border-radius: 8px
}

.fx-layout.is-list .fx-name {
    flex: 1;
    min-width: 0;
    font-size: 13px
}

.fx-layout.is-list .fx-meta {
    margin: 0;
    white-space: nowrap;
    font-size: 11.5px
}

.fx-layout.is-list .fx-actions {
    opacity: 1;
    margin-top: 0;
    margin-left: 18px;
    gap: 16px
}

@media(max-width:1000px) {
    .fx-layout {
        grid-template-columns: 1fr
    }

    .fx-sidebar {
        position: static
    }

    .fx-search input {
        width: 170px
    }
}