.member-media-modal .modal-content {
    background: #f6f7f7;
}

.member-media-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.member-media-tabs .nav-link {
    color: #3c434a;
}

.member-media-tabs .nav-link.active {
    font-weight: 600;
}

.member-media-search-wrap {
    min-width: 280px;
}

.member-media-grid {
    min-height: 420px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    align-content: start;
}

.member-media-card {
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.member-media-card.active {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1 inset;
}

.member-media-thumb {
    height: 96px;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d2327;
    font-size: 0.8rem;
    text-align: center;
    padding: 8px;
}

.member-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-media-name {
    padding: 8px;
    font-size: 0.8rem;
    color: #1d2327;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-media-details {
    min-height: 420px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.member-media-details-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.member-media-empty {
    min-height: 420px;
    border: 1px dashed #8c8f94;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #646970;
    background: #fff;
}

.member-media-upload-box {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 16px;
}

.member-media-dropzone {
    border: 2px dashed #8c8f94;
    border-radius: 8px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fcfcfc;
}

.member-media-dropzone.dragover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.member-media-dropzone-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.member-media-dropzone-subtitle {
    font-size: 0.9rem;
    color: #646970;
    text-align: center;
}
