.rc-files-list {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}

.rc-file-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}
.rc-file-row:last-child {
    border-bottom: none;
}

.rc-file-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #eef2ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rc-file-icon svg {
    width: 20px;
    height: 20px;
    stroke: #4361ee;
}

.rc-file-info {
    flex: 1;
    min-width: 0;
}
.rc-file-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rc-file-ext {
    display: inline-block;
    margin-top: 3px;
    font-size: 11px;
    color: #777;
    background: #f4f4f4;
    padding: 1px 7px;
    border-radius: 20px;
}

.rc-file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.rc-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: all .15s ease;
    line-height: 1;
}
.rc-btn-preview {
    background: #fff;
    border-color: #d0d0d0;
    color: #333 !important;
}
.rc-btn-preview:hover {
    background: #f5f5f5;
    border-color: #bbb;
}
.rc-btn-download {
    background: #111;
    border-color: #111;
    color: #fff !important;
}
.rc-btn-download:hover {
    background: #333;
    border-color: #333;
}

/* ── Overlay ── */
.rc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.rc-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.rc-modal {
    background: #fff;
    border-radius: 12px;
    width: min(820px, 95vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

.rc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}

.rc-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
}
.rc-modal-close:hover {
    color: #111;
}

.rc-modal-body {
    flex: 1;
    overflow: auto;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}
.rc-modal-body iframe {
    width: 100%;
    height: 78vh;
    border: none;
    display: block;
}
.rc-modal-body img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
}