.composer {
    width: 100%;
    padding: 14px 18px 14px 40px;
    border: 1px solid rgba(7, 29, 65, .12);
    border-radius: 72px;
    background: var(--surface);
    box-shadow: 0 10px 30px -12px rgba(7, 29, 65, .25);
}

.composer-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.composer textarea {
    flex: 1;
    min-height: 44px;
    max-height: 200px;
    padding: 9px 0;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -.01em;
}

.composer textarea::placeholder {
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.composer textarea:focus-visible {
    outline: 0;
}

.composer .icon-button {
    font-size: 25px;
}

.send-button {
    display: grid;
    place-items: center;
    flex: none;
    width: 72px;
    height: 72px;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 28px;
    transition: background .15s, transform .15s var(--ease);
}

.send-button:hover {
    background: var(--navy-hover);
}

.send-button:active {
    transform: scale(.95);
}

.send-button:disabled {
    opacity: .5;
    cursor: default;
}

#record.recording {
    background: #fde8e8;
    color: #c81e1e;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    50% {
        box-shadow: 0 0 0 8px rgba(200, 30, 30, .12);
    }
}

.attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.attachments:not(:empty) {
    margin: 4px 0 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 260px;
    padding: 6px 6px 6px 12px;
    border-radius: 999px;
    background: #eef2f7;
    font-size: 14px;
}

.chip span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chip img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.chip button {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.chip button:hover {
    background: #dde3ea;
}

@media (max-width: 900px) {
    .composer {
        padding: 8px 8px 8px 20px;
        border-radius: 40px;
    }

    .composer-row {
        gap: 2px;
    }

    .composer textarea {
        font-size: 17px;
        min-height: 40px;
    }

    .composer .icon-button {
        font-size: 21px;
    }

    .send-button {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}
