.wre-file-browser {
    --wre-browser-bg: linear-gradient(180deg, #f7f8fc 0%, #ffffff 100%);
    --wre-browser-surface: rgba(255, 255, 255, 0.92);
    --wre-browser-text: #11253e;
    --wre-browser-muted: #627180;
    --wre-browser-accent: rgba(11, 43, 71, 0.86);
    --wre-browser-accent-strong: rgba(8, 33, 55, 0.96);
    --wre-browser-border: #d8e1eb;
    --wre-browser-shadow: 0 18px 48px rgba(22, 33, 29, 0.06);
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--wre-browser-border);
    border-radius: 24px;
    background: var(--wre-browser-bg);
    color: var(--wre-browser-text);
    box-shadow: var(--wre-browser-shadow);
}

.wre-file-browser * {
    box-sizing: border-box;
}

.wre-file-browser__header {
    max-width: none;
    margin-bottom: 22px;
}

.wre-file-browser__eyebrow,
.wre-folder-section__label {
    margin: 0 0 8px;
    color: var(--wre-browser-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.wre-file-browser__header h2 {
    font-size: clamp(1.9rem, 3vw, 2.45rem);
}

.wre-file-browser__header p:last-child {
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.55;
}

.wre-folder-section__header h3 {
    font-size: 1.15rem;
}

.wre-file-card__heading-row h4 {
    font-size: 1rem;
}

.wre-file-browser__header h2,
.wre-folder-section__header h3,
.wre-file-card__heading-row h4 {
    margin: 0;
    line-height: 1.1;
}

.wre-file-browser__header p:last-child,
.wre-folder-section__description,
.wre-file-card__content p {
    color: var(--wre-browser-muted);
}

.wre-file-card__note {
    margin: 0;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f5f7f6;
    font-size: 0.94rem;
}

.wre-file-browser__folders {
    display: grid;
    gap: 14px;
}

.wre-folder-section {
    padding: 18px;
    border: 1px solid var(--wre-browser-border);
    border-radius: 22px;
    background: var(--wre-browser-surface);
    backdrop-filter: blur(12px);
}

.wre-folder-section:first-child:last-child {
    padding-top: 16px;
}

.wre-folder-section__header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 8px;
}

.wre-folder-section__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(11, 43, 71, 0.08);
    color: var(--wre-browser-accent-strong);
    font-weight: 700;
    font-size: 0.92rem;
}

.wre-folder-section__description {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.5;
}

.wre-file-list {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 14px 0 0;
    list-style: none;
}

.wre-file-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e7eeea;
}

.wre-file-card__main {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.wre-file-card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(11, 43, 71, 0.1) 0%, rgba(11, 43, 71, 0.04) 100%);
    color: var(--wre-browser-accent);
}

.wre-file-card__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.wre-file-card__content {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.wre-file-card__heading-row {
    display: block;
}

.wre-file-card__content p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

.wre-file-card__meta-inline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--wre-browser-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wre-file-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.wre-file-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--wre-browser-accent);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    font-size: 0.94rem;
    min-width: 110px;
}

.wre-file-card__button:hover,
.wre-file-card__button:focus {
    background: var(--wre-browser-accent-strong);
    color: #ffffff;
}

.wre-file-card__button:focus,
.wre-folder-section:focus-within {
    outline: 3px solid rgba(11, 43, 71, 0.18);
    outline-offset: 3px;
}

.wre-file-browser--empty {
    padding: 16px;
    border-radius: 16px;
    background: #f6f8f7;
}

@media (max-width: 900px) {
    .wre-file-card {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: start;
    }

    .wre-file-card__actions {
        justify-content: start;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .wre-file-browser {
        padding: 16px;
        border-radius: 20px;
    }

    .wre-folder-section__header,
    .wre-file-card__heading-row {
        flex-direction: column;
        align-items: start;
    }

    .wre-folder-section,
    .wre-file-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .wre-file-card__main {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
    }

    .wre-file-card__icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .wre-file-card__icon svg {
        width: 18px;
        height: 18px;
    }

    .wre-file-card__button {
        width: 100%;
    }
}