.polycc-download-explorer {
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid #dbe2f2;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    box-shadow: 0 18px 50px rgba(34, 54, 120, 0.08);
}

.polycc-download-hybrid-home {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.98) 100%),
        linear-gradient(135deg, rgba(36, 52, 123, 0.04) 0%, rgba(36, 52, 123, 0.01) 100%);
}

.polycc-download-hybrid-home.polycc-download-no-toolbar {
    padding-top: 18px;
}

.polycc-download-hybrid-home .polycc-download-toolbar {
    text-align: center;
}

.polycc-download-hybrid-home .polycc-download-toolbar h2 {
    font-size: clamp(40px, 5vw, var(--polycc-directory-title-size, 72px));
    line-height: 1;
    letter-spacing: 0;
    color: #111;
    margin-bottom: 12px;
}

.polycc-download-hybrid-home .polycc-download-toolbar p {
    max-width: 820px;
    margin: 0 auto;
}

.polycc-download-toolbar h2 {
    margin: 0 0 6px;
    color: #24347b;
    font-size: 30px;
    line-height: 1.15;
}

.polycc-download-toolbar p {
    margin: 0;
    color: #66739a;
}

.polycc-download-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #eef3ff;
    color: #3f52a2;
    font-weight: 600;
}

.polycc-download-breadcrumb a {
    color: #3f52a2;
    text-decoration: none;
}

.polycc-download-breadcrumb a:hover {
    text-decoration: underline;
}

.polycc-download-breadcrumb-sep {
    opacity: 0.55;
}

.polycc-download-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.polycc-download-grid--nested {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
}

.polycc-download-grid--nested .polycc-download-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    width: 100%;
    min-height: 0;
    max-width: none;
    align-items: center;
}

.polycc-download-grid--nested .polycc-download-folder-icon,
.polycc-download-grid--nested .polycc-download-file-badge {
    width: 78px;
    height: 78px;
    min-width: 78px;
    border-radius: 24px;
    font-size: 30px;
}

.polycc-download-grid--nested .polycc-download-card-body {
    align-content: center;
    gap: 12px;
}

.polycc-download-grid--nested .polycc-download-card-body h3 {
    font-size: 30px;
    line-height: 1.1;
}

.polycc-download-grid--nested .polycc-download-card-body p {
    max-width: 68ch;
    font-size: 18px;
    line-height: 1.7;
}

.polycc-download-grid--nested .polycc-download-meta {
    font-size: 14px;
}

.polycc-download-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 186px;
    padding: 22px;
    border: 1px solid #dde4f6;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(46, 67, 144, 0.08);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.polycc-download-hybrid-grid {
    gap: 34px 26px;
}

.polycc-download-nested-folders {
    margin-bottom: 8px;
}

.polycc-download-file-list {
    display: grid;
    gap: 14px;
}

.polycc-download-file-list-item {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) auto auto !important;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid #dde4f6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(46, 67, 144, 0.08);
}

.polycc-download-file-list-ext {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(180deg, #4c65df 0%, #3a51cb 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.polycc-download-file-list-ext .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.polycc-download-file-list-ext-label {
    line-height: 1;
}

.polycc-download-file-list-ext--pdf {
    background: linear-gradient(180deg, #ea4b4b 0%, #ca3131 100%);
}

.polycc-download-file-list-ext--word {
    background: linear-gradient(180deg, #2f74ff 0%, #2259c7 100%);
}

.polycc-download-file-list-ext--excel {
    background: linear-gradient(180deg, #26a65b 0%, #1b8145 100%);
}

.polycc-download-file-list-ext--image {
    background: linear-gradient(180deg, #8a62ff 0%, #6944d1 100%);
}

.polycc-download-file-list-ext--archive {
    background: linear-gradient(180deg, #f5a623 0%, #d98509 100%);
}

.polycc-download-file-list-ext--video {
    background: linear-gradient(180deg, #ff6b57 0%, #db4f3c 100%);
}

.polycc-download-file-list-title {
    color: #23357b;
    font-size: 15px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    font-weight: 700;
    min-width: 0;
}

.polycc-download-file-list-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.polycc-download-file-list-stats {
    display: grid;
    justify-items: end;
    gap: 2px;
    min-width: 72px;
}

.polycc-download-file-list-stats-label {
    color: #677294;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.polycc-download-file-list-stats strong {
    color: #23357b;
    font-size: 18px;
    line-height: 1;
}

.polycc-download-tile {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-decoration: none;
}

.polycc-download-tile:hover .polycc-download-tile-visual {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(18, 24, 49, 0.16);
}

.polycc-download-tile-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(var(--polycc-hybrid-tile-size, 180px), 100%);
    aspect-ratio: 1 / 1;
    padding: 20px;
    border-radius: 30px;
    background: #2f2f33;
    box-shadow: 0 16px 30px rgba(17, 17, 17, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

.polycc-download-folder-tile .polycc-download-tile-visual {
    background: #2f2f33;
}

.polycc-download-theme-light .polycc-download-folder-tile .polycc-download-tile-visual {
    background: linear-gradient(180deg, #f5f7ff 0%, #eaf0ff 100%);
    border: 1px solid #dbe3ff;
}

.polycc-download-theme-light .polycc-download-folder-tile .polycc-download-tile-visual img {
    filter: none;
}

.polycc-download-folder-tile .polycc-download-tile-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.polycc-download-folder-tile .polycc-download-tile-visual .dashicons {
    font-size: 84px;
    width: 84px;
    height: 84px;
    color: #fff;
}

.polycc-download-theme-light .polycc-download-folder-tile .polycc-download-tile-visual .dashicons {
    color: #24347b;
}

.polycc-download-file-tile .polycc-download-tile-visual {
    background: #3248c0;
}

.polycc-download-theme-light .polycc-download-file-tile .polycc-download-tile-visual {
    background: linear-gradient(180deg, #4c65df 0%, #3a51cb 100%);
}

.polycc-download-file-tile .polycc-download-file-badge {
    min-width: 92px;
    height: 92px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 22px;
}

.polycc-download-tile-title {
    color: #111;
    font-size: clamp(18px, 1.8vw, var(--polycc-hybrid-title-size, 24px));
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    word-break: break-word;
}

.polycc-download-hybrid-home .polycc-download-breadcrumb {
    margin-bottom: 6px;
}

.polycc-download-tile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #3248c0;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.polycc-download-tile-link:hover {
    background: #2438aa;
    color: #fff;
}

.polycc-download-card:hover {
    transform: translateY(-3px);
    border-color: #c8d4fb;
    box-shadow: 0 20px 44px rgba(46, 67, 144, 0.14);
}

.polycc-download-folder-icon,
.polycc-download-file-badge {
    flex: 0 0 auto;
}

.polycc-download-folder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--polycc-folder-color) 16%, white);
    color: var(--polycc-folder-color);
    font-size: 28px;
}

.polycc-download-file-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 68px;
    padding: 0 16px;
    border-radius: 20px;
    background: #4358c9;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.polycc-download-card-body {
    display: grid;
    align-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.polycc-download-card-body h3 {
    margin: 0;
    color: #23357b;
    font-size: 22px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: normal;
    text-wrap: balance;
}

.polycc-download-card-body p {
    margin: 0;
    color: #5c6786;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.polycc-download-meta {
    color: #677294;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.polycc-download-file-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.polycc-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #4358c9;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.polycc-download-button:hover {
    background: #3248c0;
    color: #fff;
}

.polycc-download-missing {
    color: #c04a4a;
    font-weight: 600;
}

.polycc-download-empty {
    padding: 36px 24px;
    border: 1px dashed #ccd6f1;
    border-radius: 18px;
    text-align: center;
    color: #61709b;
    background: #fbfcff;
}

@media (max-width: 767px) {
    .polycc-download-grid {
        grid-template-columns: 1fr !important;
    }

    .polycc-download-grid--nested {
        display: grid;
        grid-template-columns: 1fr !important;
    }

    .polycc-download-explorer {
        gap: 14px;
        padding: 16px;
        border-radius: 16px;
    }

    .polycc-download-toolbar h2 {
        font-size: 22px;
    }

    .polycc-download-hybrid-home .polycc-download-toolbar h2 {
        font-size: min(28px, var(--polycc-directory-title-size, 72px));
        margin-bottom: 6px;
    }

    .polycc-download-toolbar p {
        font-size: 14px;
        line-height: 1.5;
    }

    .polycc-download-breadcrumb {
        gap: 6px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .polycc-download-card {
        min-height: 0;
        padding: 16px;
    }

    .polycc-download-card-body h3 {
        font-size: 18px;
    }

    .polycc-download-grid--nested .polycc-download-card {
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: flex-start;
    }

    .polycc-download-grid--nested .polycc-download-folder-icon,
    .polycc-download-grid--nested .polycc-download-file-badge {
        width: 64px;
        height: 64px;
        min-width: 64px;
        font-size: 24px;
    }

    .polycc-download-grid--nested .polycc-download-card-body h3 {
        font-size: 22px;
    }

    .polycc-download-grid--nested .polycc-download-card-body p {
        max-width: none;
        font-size: 16px;
        line-height: 1.6;
    }

    .polycc-download-hybrid-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 12px;
        align-items: start;
    }

    .polycc-download-file-list-item {
        grid-template-columns: 46px minmax(0, 1fr) auto auto !important;
        align-items: center;
        gap: 8px;
        padding: 12px;
    }

    .polycc-download-file-list-ext {
        width: 46px;
        min-width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 8px;
    }

    .polycc-download-file-list-ext .dashicons {
        width: 14px;
        height: 14px;
        font-size: 14px;
    }

    .polycc-download-file-list-title {
        font-size: 13px;
        align-self: center;
    }

    .polycc-download-file-list-actions {
        justify-content: flex-start;
    }

    .polycc-download-file-list-actions .polycc-download-button {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .polycc-download-file-list-stats {
        justify-items: end;
        min-width: 34px;
        gap: 0;
    }

    .polycc-download-file-list-stats-label {
        display: none;
    }

    .polycc-download-file-list-stats strong {
        font-size: 14px;
    }

    .polycc-download-tile {
        gap: 10px;
    }

    .polycc-download-tile-visual {
        width: min(100%, 132px);
        padding: 14px;
        border-radius: 22px;
    }

    .polycc-download-folder-tile .polycc-download-tile-visual .dashicons {
        font-size: 52px;
        width: 52px;
        height: 52px;
    }

    .polycc-download-tile-title {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.18;
        text-transform: none;
        word-break: normal;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

    .polycc-download-file-tile .polycc-download-file-badge {
        min-width: 72px;
        height: 72px;
        border-radius: 22px;
        font-size: 18px;
    }

    .polycc-download-tile-link {
        min-height: 36px;
        padding: 7px 14px;
        font-size: 13px;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .polycc-download-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 390px) {
    .polycc-download-hybrid-grid {
        grid-template-columns: 1fr !important;
    }

    .polycc-download-tile-visual {
        width: min(100%, 148px);
    }

    .polycc-download-tile-title {
        font-size: 16px;
    }
}
