/* Stability/usability overrides (10 Nov): bigger touch targets, readable composer, phone layout. Loaded last. */
#builder .coach-typing::after{content:'';display:block;clear:both}
#builder .coach-typing textarea{width:100%!important;min-height:44px!important;height:auto!important;field-sizing:content;max-height:140px!important;font-size:15px!important;line-height:1.4!important;padding:10px 8px!important;margin:0!important;overflow-y:auto!important}
#builder .coach-typing textarea::placeholder{font-size:14px!important}
#builder .coach-typing>button{float:right!important;height:40px!important;min-height:40px!important;padding:0 18px!important;margin:6px 0 0!important;font-size:14px!important;border-radius:8px!important}
#builder .coach-mic{width:36px!important;height:36px!important;min-width:36px!important}
#builder .coach-mic svg{width:16px!important;height:16px!important}
#builder .coach-mic-caption{font-size:13px!important}
#builder .coach-compose select{font-size:13px!important;height:auto!important;padding:6px 8px!important;width:auto!important;min-width:132px!important;max-width:none!important}
#builder .coach-privacy,#builder .conversation-privacy{font-size:11px!important;line-height:1.4!important;opacity:.85!important;margin:8px 0 0!important;text-align:left!important;position:static!important}
#builder .coach-compose{height:auto!important}
@media (max-width:640px){
  #builder textarea,#builder input[type=text],#builder input:not([type]),#builder select{font-size:16px!important} /* stops iPhone zooming in on focus */
  #builder .coach-typing textarea::placeholder{font-size:15px!important}
  #builder .studio-nav{padding:0 8px!important}
  #builder .studio-nav-step{padding:8px 7px 10px!important;font-size:11.5px!important;gap:4px!important}
  #builder .prompter-hotkey-badge{display:none!important}
  #builder .prompt-top{flex-wrap:wrap!important;gap:8px!important}
  #builder .prompt-text{font-size:21px!important;line-height:1.5!important}
  #builder button,#builder summary{min-height:40px}
  #builder .coach-bubble p{font-size:15.5px!important;line-height:1.5!important}
  .logo span:not(:first-child){display:none}
}
#builder .placeholder-note{flex-basis:100%;width:100%;margin:0 0 8px;font-size:13px;color:#9c6816}
/* 10 Nov: benchmark cards overflowed phone width on the scorecard */
@media (max-width:640px){
  #builder .benchmark-grid{grid-template-columns:1fr!important;display:grid!important}
  #builder .benchmark-card{min-width:0!important;max-width:100%!important}
  #builder .bm-refs{flex-wrap:wrap!important;gap:4px 10px!important}
}
/* 10 Nov: composer breathing room (Karan: mic + send sat too high in the box) */
#builder .coach-compose{padding:18px 20px 14px!important}
#builder .coach-compose-actions{display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 12px!important;height:auto!important;min-height:40px!important;max-height:none!important}
#builder .coach-compose-actions select{margin-left:auto!important}
#builder .coach-typing>button{margin:12px 0 4px!important}
#builder .conversation-privacy{margin-top:12px!important}
@media (max-width:640px){#builder .coach-compose{padding:16px 14px 12px!important}}
/* 11 Nov: compact composer so the chat stays bigger than the typing box on short laptop screens */
#builder .coach-compose{padding:8px 12px!important}
#builder .coach-compose-actions{margin:0 0 4px!important;min-height:0!important;gap:8px!important}
#builder .coach-compose-actions .coach-mic{width:32px!important;height:32px!important}
#builder .coach-compose-actions select{padding:3px 6px!important;min-width:0!important}
#builder .coach-typing{position:relative!important}
#builder .coach-typing textarea{min-height:44px!important;max-height:96px!important;padding:10px 96px 10px 10px!important;margin:0!important}
#builder .coach-typing>button{position:absolute!important;right:6px!important;bottom:6px!important;margin:0!important;padding:6px 14px!important}
#builder .conversation-privacy{margin:4px 0 0!important;font-size:11px!important;line-height:1.3!important}
@media (max-height:860px){
 .wingman-stage-header{padding-top:8px!important;padding-bottom:8px!important;min-height:0!important}
 .wingman-avatar-wrap,.wingman-avatar-wrap img{width:56px!important;height:56px!important}
 .wingman-meta p{display:none!important}
 .quick-presets-bar{padding-top:6px!important;padding-bottom:6px!important}
 .quick-presets-label{display:none!important}
}
