/* Human Bot IA V64: single message column, independent bubble heights */
#messages.chatwall{
 display:flex!important; flex-direction:column!important; align-items:stretch!important;
 gap:12px!important; padding:12px 12px 20px!important; overflow-y:auto!important;
 overflow-x:hidden!important; min-height:0!important; overflow-anchor:auto;
}
#messages>.msg.hb64-message{
 position:relative!important; display:flex!important; flex-direction:column!important;
 flex:0 0 auto!important; align-self:flex-start!important; box-sizing:border-box!important;
 width:fit-content!important; min-width:65px!important;
 max-width:min(85%,430px)!important; max-height:none!important;
 float:none!important; clear:both!important; overflow:visible!important;
 margin:0!important; padding:8px 9px 5px!important;
 contain:none!important; isolation:isolate;
 border-radius:15px 15px 15px 5px; background:#202a30; color:#f3f5f7;
}
#messages>.msg.hb64-message.out{align-self:flex-end!important; background:#581b3f; border-radius:15px 15px 5px 15px}
#messages>.msg.hb64-message.hb64-media-msg{width:min(85%,340px)!important;max-width:340px!important}
#messages>.msg.hb64-message.hb64-audio-msg{width:min(85%,340px)!important;max-width:340px!important; padding:8px 9px 5px!important}
#messages .hb64-message-content{display:block;width:100%;min-width:0;min-height:0;position:static!important;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.45}
#messages .hb64-image,#messages .hb64-video{display:block!important;width:100%!important;height:auto!important;aspect-ratio:auto!important;max-width:100%!important;max-height:min(55dvh,460px)!important;object-fit:contain!important;border-radius:10px!important;position:static!important;float:none!important;margin:0!important;box-sizing:border-box!important}
#messages .hb64-image-link{display:block;max-width:100%;line-height:0}
#messages .hb64-caption{font-size:12px;line-height:1.3;color:#d5cad1;margin:6px 2px 0;overflow-wrap:anywhere;white-space:normal}
#messages>.msg.hb64-message .msgfoot{position:static!important;transform:none!important;clear:both!important;float:none!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;min-height:17px!important;height:auto!important;margin:4px 1px 0 auto!important;padding:0!important;background:transparent!important;white-space:nowrap!important;color:#d8c9d1;font-size:11px}
#messages>.msg.hb64-message .msgfoot .ticks{position:static!important;line-height:1;white-space:nowrap}
#messages .hb64-audio{display:grid!important;grid-template-columns:40px minmax(0,1fr) auto;gap:8px;align-items:center;width:100%;min-width:0;min-height:46px;max-height:none;position:relative!important;box-sizing:border-box!important}
#messages .hb64-audio-play{background:#ffffff20;color:#fff;width:39px;height:39px;border-radius:50%;display:grid;place-items:center;font-size:19px;border:0;line-height:1;cursor:pointer;padding:0}
#messages .hb64-audio-seek{min-width:0!important;width:100%!important;accent-color:#ff9dcd;height:28px;margin:0;padding:0;cursor:pointer}
#messages .hb64-audio-time{font-variant-numeric:tabular-nums;color:#f4e5ef;font-size:12px;white-space:nowrap;min-width:34px;text-align:right}
#messages .hb64-audio-error{grid-column:1/-1;font-size:11px;color:#fff0f2;overflow-wrap:anywhere;line-height:1.3}
#messages .hb64-sticker{font-size:33px;line-height:1.3;min-width:56px!important}
/* Dedicated recording surface: overlays compose bar, but never a chat bubble */
.composer{isolation:isolate;min-width:0!important}
.composer #hb-recording-ui,.composer.is-recording #hb-recording-ui{display:none!important}
#hb64RecordPanel[hidden]{display:none!important}
#hb64RecordPanel{position:relative;flex:1;display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px;background:#141c22;border-radius:20px;border:1px solid #33424c;color:#fff;box-sizing:border-box}
.composer.hb64-recording .composebox{display:none!important}
.composer.hb64-recording .mic{align-self:flex-end;touch-action:none}
.composer.hb64-recording.hb64-locked #send{display:none!important}
#hb64RecordPanel .hb64-rec-top{display:flex;gap:10px;align-items:center;min-width:0}
#hb64RecordPanel .hb64-timer{font-size:16px;font-variant-numeric:tabular-nums;min-width:43px}
#hb64RecordPanel .hb64-rec-wave{display:flex;flex:1;gap:2px;align-items:center;height:33px;overflow:hidden;min-width:0}
#hb64RecordPanel .hb64-rec-wave i{flex:1;min-width:2px;max-width:5px;height:4px;border-radius:4px;background:#f4bacf}
#hb64RecordPanel .hb64-lockhint{font-size:12px;white-space:nowrap;color:#d2c0cb}
#hb64RecordPanel .hb64-rec-actions{display:none;grid-template-columns:42px 1fr 50px;gap:10px;align-items:center}
.composer.hb64-locked #hb64RecordPanel .hb64-rec-actions{display:grid}
#hb64RecordPanel .hb64-rec-actions button{border:none;cursor:pointer;color:white;min-height:48px;border-radius:25px;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:650;font-size:15px}
#hb64RecordPanel .hb64-discard{background:#531b30}
#hb64RecordPanel .hb64-pause{background:#27313a}
#hb64RecordPanel .hb64-rec-send{background:#03b568}
#hb64RecordPanel .hb64-message{font-size:11px;color:#d8c1cc}
#send.hb64-holding{background:#ac1e5e;touch-action:none;user-select:none;-webkit-user-select:none}
@media(max-width:400px){#messages.chatwall{gap:10px!important;padding:8px 9px 20px!important}#messages>.msg.hb64-message.hb64-media-msg{width:min(88%,335px)!important}#hb64RecordPanel{padding:10px}#hb64RecordPanel .hb64-lockhint{font-size:10px}}
