.mediainput-attachments {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
        border-radius: 16px 16px 0 0;
        background: rgba(8, 13, 22, 0.78);
        border: 1px solid rgba(129, 161, 193, 0.18);
        border-bottom: 0;
    }

    .mediainput-attachment-card {
        position: relative;
        width: 256px;
        height: 256px;
        overflow: hidden;
        border-radius: 14px;
        background: rgba(20, 28, 42, 0.92);
        border: 1px solid rgba(148, 163, 184, 0.28);
    }

    .mediainput-attachment-card.has-error {
        border-color: rgba(248, 113, 113, 0.75);
    }

    .mediainput-attachment-remove {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 2;
        width: 28px;
        height: 28px;
        border: 0;
        border-radius: 999px;
        color: #f8fafc;
        background: rgba(15, 23, 42, 0.86);
        cursor: pointer;
    }

    .mediainput-attachment-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .mediainput-attachment-file {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 26px;
        text-align: center;
        color: #dbeafe;
    }

    .mediainput-attachment-file span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mediainput-attachment-meta {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        gap: 2px;
        padding: 10px;
        background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.18));
    }

    .mediainput-attachment-name,
    .mediainput-attachment-status {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mediainput-attachment-name {
        color: #f8fafc;
        font-size: 0.84rem;
    }

    .mediainput-attachment-status {
        color: #5eead4;
        font-size: 0.72rem;
    }

    .mediainput-attachment-card.has-error .mediainput-attachment-status {
        color: #fca5a5;
    }
