.mobile-account{display:none}.network-status{position:fixed;top:0;left:0;right:0;z-index:100;background:#963c3c;color:white;text-align:center;padding:10px 16px;font-size:13px;line-height:1.5}.is-offline .topbar{padding-top:38px}
.is-offline .compose-status{font-size:0!important;background:#fff0f0;color:#963c3c}.is-offline .compose-status:before{content:"Sem conexão. Nenhum envio será realizado.";font-size:12px}.is-offline #send-message{opacity:.45}
@media(max-width:760px){
 body{overscroll-behavior-y:contain}.app{min-height:100dvh;display:block}.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;min-width:0;height:auto;padding:0 6px env(safe-area-inset-bottom);border:0;border-top:1px solid var(--line);z-index:5;background:#fff}
 .sidebar>.brand,.sidebar>.nav-label,.sidebar>.sidebar-bottom{display:none}.sidebar nav{display:flex;align-items:stretch;gap:2px}.sidebar .nav-item{flex:1;min-width:0;min-height:60px;font-size:10px;flex-direction:column;justify-content:center;gap:5px;padding:8px 2px;border-radius:0;line-height:1.2;white-space:normal;text-align:center}.sidebar .nav-item .icon{width:21px;height:21px}.sidebar .nav-item.active{background:#edf6ff;border-top:2px solid var(--blue)}
 .main{padding:calc(16px + env(safe-area-inset-top)) 14px calc(90px + env(safe-area-inset-bottom));width:100%}.topbar{align-items:flex-start;gap:10px;margin-bottom:18px}.topbar h1{font-size:22px;line-height:1.25;overflow-wrap:anywhere}.topbar-actions{flex-wrap:wrap;justify-content:flex-end;max-width:160px}.topbar .mini-label{font-size:9px}.topbar p{display:none}.mobile-account{display:inline-flex}.icon-button{min-width:44px;min-height:44px}.button{min-height:44px;white-space:normal;border-radius:6px}.pwa-install{font-size:11px;min-height:36px;padding:8px 10px}
 input,select,textarea,.auth-form input{font-size:16px!important}.auth-form-wrap{min-height:100dvh;padding:24px 20px}.auth-form h2{font-size:28px}.auth-form label{font-size:14px}.search input{min-width:0}.filters{width:100%;min-width:0}.filters .search{min-width:120px}.filters select{max-width:none}.toolbar .tabs{margin-bottom:2px}.stats{gap:10px}.stat{border-radius:8px}.stat strong{font-size:23px}.stat small{font-size:11px}.cards{max-height:none}.conversation-card{border-radius:8px;min-height:90px}.column{border-radius:0}.column-description{font-size:11px}.card-preview{font-size:13px}
 .conversation-dialog{position:fixed;inset:var(--mobile-top,0px) 0 auto;margin:0;border:0;border-radius:0;width:100%;max-width:100%;height:var(--mobile-height,100dvh);max-height:100dvh;box-shadow:none}.conversation-layout{display:flex;flex-direction:column;height:100%;min-height:0}.chat-panel{width:100%;min-height:0;flex:1}.chat-header{padding:calc(10px + env(safe-area-inset-top)) 12px 10px;min-height:66px}.chat-header .avatar{width:36px;height:36px}.chat-person{min-width:0;flex:1}.chat-person h2{font-size:15px;overflow-wrap:anywhere}.chat-person small{font-size:11px}.chat-header #close-chat{min-width:44px;min-height:44px}.chat-actions{padding:8px 12px;min-height:52px;gap:6px}.chat-actions>span{width:100%;font-size:11px}.chat-actions>div{width:100%;display:flex;gap:6px;flex-wrap:wrap}.chat-actions .button{flex:1;font-size:11px;min-height:40px;padding:8px 5px}.chat-actions .icon{display:inline-block;width:14px;height:14px}.messages{min-height:0;padding:16px 12px;gap:12px}.message{max-width:94%;font-size:14px;line-height:1.65;border-radius:8px}.compose-status{font-size:11px;padding:8px 12px}.composer{padding:10px 12px;gap:6px 8px;grid-template-columns:minmax(0,1fr) 44px}.composer textarea{min-height:52px;max-height:110px}.composer small{display:none}.send-button{width:44px;height:44px;align-self:center}.message audio{width:min(280px,100%)}
 .conversation-nav{order:2;display:flex;flex-direction:row;width:100%;min-width:0;gap:0;padding:0 4px env(safe-area-inset-bottom);border:0;border-top:1px solid var(--line);background:white;z-index:4;flex-shrink:0}.detail-tab{flex:1;min-width:0;min-height:58px;font-size:10px;padding:6px 2px;gap:4px;border-radius:0}.detail-tab .icon{width:21px;height:21px}.detail-tab.active{box-shadow:inset 0 2px var(--blue)}
 .conversation-dialog.details-open .client-panel{position:absolute;left:0;right:0;top:0;bottom:calc(58px + env(safe-area-inset-bottom));display:block;width:100%;min-width:0;padding:calc(12px + env(safe-area-inset-top)) 16px 20px;box-shadow:none;overflow:auto;border:0;z-index:3}.detail-mobile-header{position:sticky;top:calc(-12px - env(safe-area-inset-top));background:#f4f8fd;z-index:2;padding:8px 0;margin-bottom:10px;font-size:13px}.detail-mobile-header .icon-button{width:44px;height:44px}.client-panel .client-section{border-radius:6px;padding:16px}.client-panel h3{font-size:16px}.client-panel .device-form label{font-size:13px}.client-panel .device-form input,.client-panel .device-form select{min-height:46px}.client-panel .aside-hint{font-size:12px;line-height:1.6}.client-panel .secret-field .icon-button{min-height:46px;min-width:44px}.client-panel .device-result{font-size:13px;line-height:1.7}
 .action-dialog,.channel-dialog{width:calc(100% - 24px);max-height:calc(var(--mobile-height,100dvh) - 32px);margin:auto;border-radius:8px;padding:18px}.modal-header h2{font-size:20px}.modal-form label{font-size:14px}.modal-form input,.modal-form select{min-height:46px}.modal-buttons{flex-wrap:wrap;gap:8px}.modal-buttons .button{flex:1}.toast{bottom:calc(76px + env(safe-area-inset-bottom));border-radius:8px;font-size:13px}.agenda-table td,.agenda-table th{font-size:13px;padding:12px 8px}.agenda-actions{min-width:98px;gap:6px}.agenda-table td:first-child{min-width:100px}.agenda-pagination{padding-bottom:8px}.history-filter{gap:10px}
}
@media(max-width:760px){.column[data-fila=espera]{order:1}.column[data-fila=assumido]{order:2}.column[data-fila=ia]{order:3}.column:has(.cards>.empty-column){display:none}.board:not(:has(.conversation-card)) .column[data-fila=espera]{display:block}.column-description{display:none}}
@media(max-height:500px) and (max-width:760px){.chat-header{min-height:48px;padding:6px 12px}.chat-actions>span{display:none}.chat-actions{min-height:44px;padding:4px 12px}.chat-actions .button{min-height:36px}.detail-tab{min-height:44px;font-size:9px}.detail-tab .icon{width:17px;height:17px}.conversation-dialog.details-open .client-panel{bottom:calc(44px + env(safe-area-inset-bottom))}.compose-status{padding:4px 12px}.composer{padding:6px 12px}.composer textarea{min-height:44px}}
@media(max-width:360px){.topbar-actions{max-width:145px}.topbar h1{font-size:20px}.chat-actions .button{font-size:10px}.sidebar .nav-item{font-size:9px}.stat{padding:10px}.agenda-table td:first-child{min-width:84px}}
