/* Mobile-only layout; the desktop keeps its existing navigation and tables. */
.mobile-more-menu{display:grid;gap:10px;padding:20px}.mobile-more-menu button{justify-content:flex-start;gap:12px}.mobile-more-menu svg{width:20px;height:20px}.mobile-stage-action{display:none}
@media(max-width:760px){
  .crm .main,.crm .content,.crm .panel,.crm .dashboard-grid{min-width:0}
  .crm .content{padding:20px 16px calc(110px + env(safe-area-inset-bottom))}
  .crm .topbar{position:sticky;top:0;z-index:35;background:#111315;padding:0 16px;height:60px}
  .crm .mobile-workspace{max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
  .crm .top-right>span{display:none}.crm .top-right .help-button{font-size:12px}
  .crm .mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:60;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:#181d21;border:0;border-top:1px solid #394147;overflow:visible}
  .crm .mobile-nav a,.crm .mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:54px;min-width:0;padding:6px 2px;border:0;font-size:10px;color:#bbc5ce;background:transparent;text-decoration:none;white-space:normal;border-radius:3px}
  .crm .mobile-nav .active{color:#ffab72;background:#fa7c3214}.crm .mobile-nav svg{width:21px;height:21px}.crm .mobile-nav .counter{display:none}
  .crm .mobile-nav.platform-mobile{grid-template-columns:repeat(3,minmax(0,1fr))}
  .crm #fox-assistant .fox-launcher{bottom:calc(88px + env(safe-area-inset-bottom));right:14px;width:52px;height:52px;padding:10px}
  .crm .fox-chat-panel{bottom:calc(149px + env(safe-area-inset-bottom));max-height:calc(100dvh - 165px - env(safe-area-inset-bottom))}
  .crm #toast{bottom:calc(92px + env(safe-area-inset-bottom));left:16px;right:16px;width:auto;max-width:none;transform:none}
  .crm.mobile-typing .mobile-nav,.crm.mobile-typing #fox-assistant .fox-launcher{display:none}
  .crm .page-heading{flex-direction:column;gap:14px}.crm .page-heading h1{font-size:26px}.crm .page-heading p{font-size:14px;line-height:1.6}.crm .page-heading .actions{justify-content:stretch}
  .crm .toolbar{gap:12px}.crm .toolbar>.actions{width:100%;justify-content:space-between}.crm .filters{gap:10px}.crm .search-box{min-height:48px}.crm .filters select{width:100%;min-width:0}
  .crm .table-wrap{overflow:visible;background:transparent;border:0}.crm .table-wrap table,.crm .table-wrap tbody{display:block;width:100%;min-width:0}
  .crm .table-wrap thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .crm .table-wrap tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#1b2024;border:1px solid #394147;border-radius:4px;padding:16px;margin-bottom:12px}
  .crm .table-wrap tbody td{display:block;min-width:0;max-width:none;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;font-size:14px}
  .crm .table-wrap tbody td:first-child,.crm .table-wrap tbody td:last-child{grid-column:1/-1}.crm .table-wrap tbody td::before{content:attr(data-label);display:block;font-size:10px;letter-spacing:.5px;color:#aebac3;margin-bottom:6px}
  .crm .table-wrap tbody td:first-child::before,.crm .table-wrap tbody td:last-child::before{display:none}.crm .person-cell>div{min-width:0}.crm .cell-title{font-size:16px;white-space:normal}.crm .cell-sub{font-size:12px;white-space:normal;line-height:1.6}
  .crm .row-actions{gap:8px;justify-content:flex-start;margin-top:8px}.crm .row-actions button{flex:1;white-space:normal;min-width:80px;font-size:12px}.crm .row-actions button.icon{flex:0 0 44px;min-width:44px}
  .crm .property-bottom{display:block}.crm .property-body h3{white-space:normal;font-size:18px;line-height:1.4}.crm .property-price{font-size:22px}.crm .property-location{font-size:14px}.crm .property-facts{flex-wrap:wrap;font-size:12px}
  .crm .kanban{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;overflow:visible}.crm .kanban-column{width:100%;min-width:0;padding:14px}.crm .kanban-column:not(:has(.deal-card)){display:none}.crm .kanban:not(:has(.deal-card))::before{content:'Nenhuma negociação nesta visão. Cadastre uma oportunidade ou ajuste a busca.';font-size:14px;color:#b4bfc7;padding:20px;line-height:1.6}
  .crm .deal-card{cursor:default;touch-action:pan-y}.crm .deal-card h3{font-size:16px;overflow-wrap:anywhere}.crm .deal-card p{font-size:13px}.crm .mobile-stage-action{display:inline-flex;width:100%;justify-content:center;margin-top:12px;min-height:44px}.crm .deal-card-footer button{min-width:44px}
  .crm .task-row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;padding:16px}.crm .task-check{width:44px;height:44px}.crm .task-info{min-width:0}.crm .task-info strong{font-size:15px;overflow-wrap:anywhere}.crm .task-info small{font-size:12px;line-height:1.6}.crm .task-date{display:block;grid-column:2;font-size:12px}.crm .task-row>.row-actions{grid-column:1/-1;width:100%}
  .crm dialog[open]{width:calc(100% - 16px);max-width:560px;max-height:calc(100dvh - 24px);padding:0;display:flex;flex-direction:column;overflow:hidden;margin:auto}
  .crm dialog>form{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 24px)}.crm dialog>form>.modal-body,.crm dialog>.modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1;padding:18px}
  .crm dialog .modal-head{padding:16px;flex-shrink:0;gap:12px}.crm dialog .modal-head>div{min-width:0}.crm dialog .modal-head h2{font-size:20px;overflow-wrap:anywhere}.crm dialog .modal-head small{line-height:1.5;display:block}.crm dialog .modal-head button{min-width:44px;min-height:44px;flex-shrink:0}
  .crm dialog .modal-footer{flex-shrink:0;display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #394147}.crm dialog .modal-footer>.form-error{width:100%;order:-1}.crm dialog .modal-footer button{flex:1;min-height:48px;white-space:normal}.crm .form-grid{gap:16px}.crm .form-stack label,.crm .form-grid label{font-size:14px;min-width:0}.crm .form-grid textarea{min-height:110px}
  .crm .guide-module p,.crm .guide-help p,.crm .panel-body>.muted{font-size:14px;line-height:1.6}.crm .day-item button{width:100%;justify-content:center;white-space:normal}.crm .stats{gap:12px}.crm .stat-head,.crm .stat-foot{font-size:12px;line-height:1.5}.crm .welcome-guide p{font-size:14px}
  .crm .customer-portal{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.crm .portal-nav{position:fixed;top:auto;bottom:0;left:0;right:0;z-index:60;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px 4px calc(6px + env(safe-area-inset-bottom));gap:0;background:#181d21;border:0;border-top:1px solid #394147;overflow:visible}
  .crm .portal-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:54px;min-width:0;padding:6px 2px;font-size:10px;white-space:normal;text-align:center;line-height:1.25}.crm .portal-nav a svg{display:block;width:21px;height:21px;flex-shrink:0}.crm .portal-content{padding:24px 16px}.crm .portal-header{padding:12px 16px}.crm .portal-heading p,.crm .portal-property-body p,.crm .portal-group-intro p,.crm .portal-participant-vote p,.crm .portal-form-help{font-size:14px;line-height:1.65}.crm .portal-votes{gap:8px;flex-wrap:wrap}.crm .portal-vote{flex:1;min-height:46px;white-space:normal}.crm .portal-agency{min-width:0}.crm .portal-agency strong{overflow-wrap:anywhere}.crm .portal-comparison-head{gap:12px;flex-wrap:wrap}.crm .portal-overview{gap:12px}.crm .portal-overview>a{min-width:0}
}

.portal-nav-label-short{display:none}@media(max-width:760px){.crm .portal-nav-label-full{display:none}.crm .portal-nav-label-short{display:block}.crm .mobile-more-menu{min-height:0;overflow-y:auto;overscroll-behavior:contain}.crm .mobile-nav a[href="#deals"]{font-size:9px}}

@media(max-width:760px){.crm .table-wrap .row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.crm .table-wrap .row-actions button{width:100%;min-width:0;white-space:nowrap}.crm .table-wrap .row-actions button.icon{width:100%}}
