#hm-ai-wrapper{
    margin-top:40px;
    border:1px solid #e8e8e8;
    border-radius:24px;
    background:#fff;
    overflow:hidden;
    box-shadow:0 2px 12px rgba(0,0,0,.04);
    font-family:Inter,Arial,sans-serif;
}

.hm-ai-header{
    padding:30px 30px 15px;
}

.hm-ai-title-row{
    display:flex;
    align-items:flex-start;
    gap:14px;
}

.hm-ai-star{
    font-size:22px;
    color:#4f46e5;
    margin-top:2px;
}

.hm-ai-title{
    font-size:34px;
    font-weight:700;
    color:#111827;
    line-height:1.2;
}

.hm-ai-subtitle{
    margin-top:8px;
    color:#6b7280;
    font-size:16px;
}

.hm-ai-chat-box{
    height:520px;
    overflow-y:auto;
    background:#fafafa;
    padding:25px;
    border-top:1px solid #f1f1f1;
}

.hm-ai-message{
    display:flex;
    margin-bottom:25px;
}

.hm-ai-message.user{
    justify-content:flex-end;
}

.hm-ai-bubble{
    max-width:72%;
    padding:18px 22px;
    border-radius:26px;
    font-size:18px;
    line-height:1.7;
}

.hm-ai-message.user .hm-ai-bubble{
    background:#dbeafe;
    color:#2563eb;
    border-bottom-right-radius:10px;
}

.hm-ai-message.bot .hm-ai-bubble{
    background:#fff;
    color:#111827;
    border:1px solid #ececec;
    border-bottom-left-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.03);
}

.hm-ai-input-wrapper{
    display:flex;
    gap:16px;
    padding:20px;
    background:#fff;
    border-top:1px solid #ececec;
}

#hm-ai-input{
    flex:1;
    min-height:68px;
    max-height:180px;
    border:1px solid #dddddd;
    border-radius:20px;
    padding:18px 20px;
    resize:none;
    font-size:16px;
    font-family:inherit;
    transition:.2s;
}

#hm-ai-input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.08);
}

#hm-ai-send{
    width:62px;
    min-width:62px;
    height:62px;
    border:none;
    border-radius:50%;
    background:#e11d48;
    color:#fff;
    font-size:24px;
    cursor:pointer;
    transition:.2s;
}

#hm-ai-send:hover{
    transform:scale(1.05);
}

.hm-ai-footer{
    padding:14px 24px;
    background:#fafafa;
    border-top:1px solid #ececec;
    font-size:13px;
    color:#6b7280;
}

.hm-ai-bubble br{
    content:"";
}

.hm-ai-bubble strong{
    display:block;
    margin-top:10px;
    margin-bottom:5px;
    font-weight:700;
}

.hm-ai-bubble{
    white-space:normal;
}