.chat-controls {
    padding: 10px 0 18px;
    background: linear-gradient(180deg, rgba(247, 248, 245, 0) 0%, rgba(247, 248, 245, 0.92) 18%, rgba(247, 248, 245, 1) 100%);
    border-top: 1px solid rgba(67, 97, 125, 0.18);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.chat-composer {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
}

.composer-input-shell {
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 14px 12px 24px;
    border: 1.5px solid var(--border-color);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 30px rgba(30, 52, 73, 0.06);
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.composer-input-shell:focus-within {
    border-color: rgba(67, 97, 125, 0.36);
    box-shadow:
        0 0 0 4px rgba(67, 97, 125, 0.08),
        0 14px 30px rgba(30, 52, 73, 0.08);
}

.chat-composer.is-typing .composer-input-shell {
    border-color: rgba(67, 97, 125, 0.3);
}

.composer-input-shell.is-multiline {
    border-radius: 24px;
}

.composer-input-shell.is-tall {
    border-radius: 22px;
}

.composer-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.45;
    resize: none;
    overflow-y: auto;
    max-height: 140px;
    font-family: inherit;
    padding: 0;
    margin: 0;
}

.composer-input::placeholder {
    color: var(--muted-text-color);
}

.composer-input:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.send-button {
    border: none;
    border-radius: 16px;
    background: transparent;
    min-width: 64px;
    width: 64px;
    height: 52px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.send-button img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.send-button:hover {
    transform: translateY(-1px);
}

.send-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.voice-controls {
    display: none;
}

@media (max-width: 640px) {
    .chat-controls {
        padding: 8px 0 16px;
    }

    .composer-input-shell {
        min-height: 66px;
        padding: 10px 10px 10px 16px;
        gap: 10px;
        border-radius: 22px;
    }

    .composer-input {
        font-size: 0.98rem;
    }

    .send-button {
        width: 50px;
        min-width: 50px;
        height: 46px;
    }

    .send-button img {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 420px) {
    .chat-controls {
        padding: 8px 0 14px;
    }

    .composer-input-shell {
        min-height: 60px;
        padding-left: 14px;
    }

    .composer-input {
        font-size: 0.95rem;
    }
}
