/* JAUS Conecta: fit the available viewport, preserve readable content and internal scrolling. */
.main,.card,.toolbar,.page-header,.chat-panel,.chat-header,.chat-identity,.scoring-layout>*,.form-grid>*{min-width:0}
.page-header{flex-wrap:wrap}.toolbar>label{min-width:0}.toolbar .search{min-width:min(200px,100%)}
.card-head,.row.between{gap:12px;flex-wrap:wrap}.card h2,.card h3,.chat-identity strong{overflow-wrap:anywhere}
.table-wrap{max-width:100%;overflow-x:auto}.table-wrap table{min-width:560px}
input,select,textarea{max-width:100%;min-width:0}audio,video{max-width:100%}
.inbox>section{min-width:0;min-height:0}.messages{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.bubble{overflow-wrap:anywhere}.chat-panel form{min-width:0;flex-shrink:0}
dialog,.modal{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
button:focus-visible,a:focus-visible{outline:2px solid #007f8c;outline-offset:3px}
@media(min-width:761px) and (max-width:1500px){
 .layout{grid-template-columns:250px minmax(0,1fr)}.sidebar{grid-template-columns:54px minmax(0,1fr)}
 .main{padding:20px}.inbox{grid-template-columns:250px minmax(0,1fr);min-height:360px;height:calc(100dvh - 120px)}
 .contact-panel{display:none!important}.contact-toggle{display:flex}.voice-grid{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}
}
@media(min-width:761px) and (max-width:1050px){.inbox{grid-template-columns:210px minmax(0,1fr)}.voice-grid,.two-col{grid-template-columns:1fr}.scoring-layout{grid-template-columns:1fr}}
@media(max-width:760px){
 .main{padding:14px}.card{padding:16px}.page-header>.row{flex-wrap:wrap;max-width:100%}
 .toolbar{align-items:stretch}.toolbar>*{max-width:100%}.toolbar label,.toolbar .search{flex:1 1 100%}
 .toolbar select{width:100%;min-width:0}.voice-grid,.scoring-layout{grid-template-columns:1fr}
 .form-grid{grid-template-columns:1fr}.row{flex-wrap:wrap}.chat-header{flex-wrap:wrap}
 .inbox{height:calc(100dvh - 165px);min-height:320px}.inbox.has-conversation .chat-panel{min-width:0}
 input,select,textarea{font-size:16px}button,.tabs button{min-height:44px}
 .tabs{max-width:100%;overflow-x:auto}.tabs button{flex-shrink:0}.scoring-toolbar label{width:100%}
}
@media(max-height:650px) and (min-width:761px){.main{padding-block:12px}.page-header{margin-bottom:10px}.inbox{height:calc(100dvh - 95px);min-height:280px}.nav-panel{padding-top:8px}.sidebar .brand{padding-bottom:8px}}
