/* JAVIS Classic responsive stabilization R1 — scoped overlay, 2026-11-05 */
/* Header: one readable waveform logo on desktop without breakpoint size jumps. */
@media (min-width:761px){
  body .topbar .brand{
    box-sizing:border-box!important;
    width:clamp(168px,21vw,218px)!important;min-width:168px!important;max-width:218px!important;
    flex:0 0 clamp(168px,21vw,218px)!important;justify-self:start!important;overflow:visible!important;
    transform:none!important;
  }
  body .topbar .brand>img{
    box-sizing:border-box!important;width:clamp(168px,21vw,218px)!important;min-width:168px!important;max-width:218px!important;
    height:54px!important;min-height:0!important;max-height:54px!important;
    object-fit:contain!important;object-position:left center!important;
    transform:none!important;transition:filter .2s ease!important;
  }
}
@media (max-width:760px){
  body .topbar .brand>img{
    box-sizing:border-box!important;
    width:min(168px,calc(100vw - 162px))!important;
    min-width:0!important;max-width:168px!important;
    height:46px!important;max-height:46px!important;
    object-fit:contain!important;object-position:left center!important;
    transform:none!important;
  }
}
/* Editor heading R2: one flexible source label, three fixed actions.
   Full source shows automatically on wide viewports; ellipsis only when space runs out. */
#page-tts .editorPanel{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
#page-tts .editorPanel>.panelHead{
  box-sizing:border-box!important;display:flex!important;
  align-items:center!important;flex-flow:row nowrap!important;gap:12px!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
}
#page-tts .editorPanel>.panelHead>div:first-child{
  box-sizing:border-box!important;flex:1 1 0!important;
  min-width:0!important;max-width:100%!important;overflow:hidden!important;
}
#page-tts .editorPanel>.panelHead>div:first-child>b{
  display:block!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
}
#page-tts #sourceLine{
  box-sizing:border-box!important;display:block!important;width:100%!important;
  min-width:0!important;max-width:100%!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;
  line-height:1.4!important;
}
#page-tts .editorPanel>.panelHead>.editorActions{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  justify-content:flex-end!important;flex:0 0 auto!important;
  max-width:100%!important;min-width:0!important;
  margin:0!important;gap:8px!important;flex-wrap:nowrap!important;
}
#page-tts .editorPanel .editorActions>button{
  flex:0 0 auto!important;box-sizing:border-box!important;
  white-space:nowrap!important;max-width:100%!important;
}
#page-tts .editorPanel .editorActions>.quickDictationBtn{
  width:40px!important;min-width:40px!important;height:40px!important;
}
@media(max-width:560px){
  #page-tts .editorPanel>.panelHead{gap:7px!important}
  #page-tts .editorPanel>.panelHead>.editorActions{gap:5px!important}
  #page-tts .editorPanel .editorActions>.small{
    padding-inline:7px!important;min-width:0!important;
    min-height:36px!important;font-size:12px!important;
  }
  #page-tts .editorPanel .editorActions>.quickDictationBtn{
    width:36px!important;min-width:36px!important;height:36px!important;
  }
  #page-tts .editorPanel>.panelHead>div:first-child>b{font-size:13px!important}
  #page-tts #sourceLine{font-size:11px!important}
}
/* Player actions stay in the panel at intermediate desktop widths. */
#page-tts .playerPanel,
#page-tts .playerRow{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
#page-tts .saveExportControls{min-width:0!important;max-width:100%!important;flex-wrap:wrap!important;gap:8px!important}
#page-tts .saveExportControls>*{box-sizing:border-box!important}
@media(min-width:761px) and (max-width:1250px){
  #page-tts .saveExportControls{grid-column:1/-1!important;justify-content:flex-end!important;margin-top:8px!important;}
}
@media (prefers-reduced-motion:reduce){
  body .topbar .brand>img{transition:none!important}
}
