/* ============================================================
 * 10-composer-shell-input.css
 * ============================================================ */
#composerShell {
    height: 44px;
    min-height: 44px;
    border-radius: 22px !important;
    overflow: hidden !important;
    box-sizing: border-box;
    align-items: center;
    transform: translateZ(0);
    isolation: isolate;
}

#composerShell:focus,
#composerShell:focus-within,
#composerShell.is-multiline,
#composerShell.is-multiline:focus-within {
    border-radius: 22px !important;
    overflow: hidden !important;
}

#composerShell.is-multiline {
    height: auto;
    min-height: 48px;
    max-height: min(42vh, 280px);
    align-items: flex-end;
    padding-top: 12px;
    padding-bottom: 3px;
}

#messageInput {
    display: block;
    width: 100%;
    height: 28px;
    min-height: 28px;
    line-height: 28px;
    padding: 0 !important;
    margin: 0;
    overflow-y: hidden;
    overflow-x: hidden;
    resize: none;
    field-sizing: fixed;
    border: none !important;
    border-radius: 0 !important;
    box-sizing: border-box;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 14.5px;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-appearance: none;
    appearance: none;
    vertical-align: middle;
}

#messageInput:focus,
#messageInput:focus-visible,
#messageInput:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

#messageInput::placeholder {
    font-size: 14.5px;
    line-height: 28px;
    vertical-align: middle;
    opacity: 1;
}

#composerShell.is-multiline #messageInput {
    line-height: 1.45;
    min-height: 28px;
    height: auto;
}

/* Send neo đáy shell khi giãn */
#composerShell.is-multiline #sendBtn {
    align-self: flex-end !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
}
