/* VOICE AI 1.4 - Sticky Controls Fix */
#atiVoicePanel{
  display:none!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
body.ati-voice-open #atiVoicePanel{
  display:flex!important;
}
#atiVoiceLog{
  flex:1 1 auto!important;
  min-height:120px!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-bottom:12px!important;
  -webkit-overflow-scrolling:touch!important;
}
#atiVoicePanel .ati-typing{
  flex:0 0 auto!important;
}
#atiVoiceActions,
#atiVoiceControls{
  flex:0 0 auto!important;
  background:linear-gradient(145deg,rgba(7,23,42,.98),rgba(18,31,67,.98))!important;
  z-index:5!important;
}
#atiVoiceControls{
  border-top:1px solid rgba(101,213,255,.14)!important;
}
#atiSpeakBtn{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:46px!important;
  margin:0!important;
}
@media(max-width:760px){
  #atiVoicePanel{max-height:74vh!important;}
  #atiVoiceLog{min-height:105px!important;}
  #atiVoiceActions{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    padding:10px 12px!important;
  }
  #atiVoiceActions a{
    min-height:40px!important;
    padding:8px!important;
    font-size:12.5px!important;
  }
  #atiVoiceControls{
    padding:12px!important;
    gap:8px!important;
  }
  #atiVoiceText{min-height:44px!important;}
  .voice-buttons button,#atiSpeakBtn{min-height:44px!important;}
}
@media(max-height:720px){
  #atiVoicePanel{
    max-height:82vh!important;
    bottom:96px!important;
  }
  #atiVoiceFab{bottom:22px!important;}
  #atiVoiceLog{min-height:80px!important;}
  #atiVoicePanel .voice-head{padding:12px!important;}
  #atiVoiceActions{padding:8px 12px!important;}
  #atiVoiceControls{padding:10px 12px!important;}
}
