.file-preview-row {
    list-style: none;
    margin-top: -0.2rem;
    margin-bottom: 0.7rem;
}
.file-preview-cell {
    padding: 0.25rem 0.3rem 0.8rem 0.3rem;
    border-bottom: 0 !important;
}
.file-preview-panel {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.85rem;
}
.file-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.file-preview-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}
.file-preview-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(125, 211, 252, 0.45);
    color: #7dd3fc;
    text-decoration: none;
    font-size: 0.9rem;
}
.file-preview-download:hover { background: rgba(125, 211, 252, 0.12); }
.file-preview-content {
    width: 100%;
    min-height: 220px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.file-preview-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}
.file-preview-embed {
    width: 100%;
    min-height: 60vh;
    border: 0;
    background: #0b1220;
}
.file-preview-text {
    width: 100%;
    margin: 0;
    padding: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #e8e8e8;
}
.file-preview-empty {
    margin: 0;
    padding: 1rem;
    text-align: center;
    opacity: 0.8;
}
