/* Phone layouts share the same controls and permissions as desktop. */
.mobile-nav-toggle{display:none}
@media(max-width:740px){
 body{overflow-x:clip}.shell,.main,.workspace,.panel,.split,.dashboard-grid,.ops-grid{min-width:0;max-width:100%}.workspace{padding:20px 14px}.sidebar{padding:12px 14px;background:#0e151e}.shell .sidebar .brand{padding:0;margin:0;height:44px;width:auto;max-width:calc(100% - 95px)}.brand img{width:32px;height:32px}.brand strong{font-size:16px}.sidebar{position:relative}.nav-label{display:none}.mobile-nav-toggle{display:inline-flex;position:absolute;right:14px;top:12px;min-height:44px;padding:10px 14px;background:#27213b;border:1px solid #544369}.sidebar.mobile-navigation nav{display:none}.sidebar.mobile-navigation.nav-open nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;margin-top:16px}.sidebar nav button,.sidebar nav a{white-space:normal;text-align:left;justify-content:flex-start;min-width:0;width:100%;font-size:12px;min-height:48px;padding:10px;line-height:1.4;text-decoration:none}.sidebar nav svg{width:17px;height:17px}.sidebar nav .count{display:inline-block}.sidebar-bottom{display:none}.sidebar.nav-open .sidebar-bottom{display:flex;padding-top:14px;margin-top:14px}.topbar{padding:12px 14px;gap:12px;align-items:flex-start}.crumb{flex-wrap:wrap;font-size:12px}.top-actions{width:100%;display:flex;gap:8px}.top-actions button{min-height:44px;flex:1;padding:10px 8px;font-size:12px}.top-actions .draft{width:100%;background:none;padding:0}.page-head{display:flex;flex-direction:column;align-items:stretch;gap:16px}.page-head h1{font-size:25px;line-height:1.25}.head-actions{display:flex;flex-wrap:wrap;gap:8px}.head-actions button{flex:1;min-width:130px;min-height:44px}.stats,.ai-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat,.ops-stat,.ai-card{min-width:0;padding:15px;min-height:100px}.stat-value,.ops-stat strong,.ai-card strong{font-size:24px;overflow-wrap:anywhere}.stat-top{font-size:12px}.stat small,.ops-stat span{line-height:1.5}.ops-stat::before{display:none}.connection{padding:16px;gap:10px}.connection>div:nth-child(2){min-width:0;flex:1}.connection .tag{margin-left:0;white-space:normal}.toolbar,.toolbar .filters,#filters{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:14px}.toolbar .search,.toolbar .filters input,.toolbar select,#search,#filter{width:100%;min-width:0;max-width:100%}.toolbar-note{display:block;white-space:normal}.toolbar button{min-height:44px}.panel-head{padding:16px;flex-wrap:wrap}.panel-head h2{font-size:16px}.panel-body,.ops-detail{padding:16px}.split,.dashboard-grid,.ops-grid,.ai-layout{grid-template-columns:1fr}.ai-hero{padding:18px}.ai-monitor .panel-body{display:block}.ai-log{height:320px;padding:14px}.ai-message{max-width:100%;font-size:14px}.ai-composer{padding:14px}.ai-composer-foot{flex-wrap:wrap}.ai-composer-foot .ai-note{max-width:none}.ai-composer-foot button{min-height:44px}.ai-suggestions{padding:0 14px 14px}.ai-suggestions button{min-height:40px}.form-row{grid-template-columns:1fr}.field,input,select,textarea{min-width:0}input:not([type=checkbox]),select,textarea{font-size:16px;min-height:46px}button{min-height:44px;touch-action:manipulation}.row-actions{flex-wrap:wrap;justify-content:flex-start}.row-actions button{min-height:40px}.pagination{gap:12px;flex-wrap:wrap}.pagination>div{width:100%}.pagination button{flex:1;min-height:44px}.campaign-list{grid-template-columns:1fr}.campaign-media{height:190px}dialog{width:calc(100% - 20px);max-width:580px;max-height:calc(100dvh - 24px);margin:auto;border-radius:12px}.dialog-head,.dialog-body,.dialog-actions{padding:16px}.dialog-actions{position:sticky;bottom:0;flex-wrap:wrap}.dialog-actions button{flex:1;min-height:46px}.dialog-body{overflow-wrap:anywhere}.login-screen{padding:18px}.login-card{padding:24px 20px;border-radius:16px}.login-card .brand{max-width:none}.footnote,#footer{overflow-wrap:anywhere}.ops-detail dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.ops-detail select{max-width:100%}.ops-detail #restore,.ops-detail #send-reply{width:100%}#toast{bottom:max(14px,env(safe-area-inset-bottom));max-width:calc(100% - 24px);font-size:13px;padding:12px 14px}#mfa-qr{width:280px;max-width:100%}
 /* Retain table headings for assistive technology; display records as cards. */
 table.mobile-records{display:block;width:100%;font-size:13px}.mobile-records thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.mobile-records tbody{display:grid;gap:12px;padding:12px}.mobile-records tbody tr{display:block;background:#141f2e;border:1px solid #303d54;border-radius:10px;overflow:hidden}.mobile-records tbody tr.selected{background:#29233f;border-color:#755d99}.mobile-records td{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:12px 14px;border:0;border-bottom:1px solid #263247;font-size:13px;min-width:0;overflow-wrap:anywhere}.mobile-records td:last-child{border-bottom:0}.mobile-records td::before{content:attr(data-label);flex:0 0 76px;font-size:11px;color:#91a1bb;text-align:left}.mobile-records td[data-label=""]::before{display:none}.mobile-records td[colspan]{display:block;text-align:center}.mobile-records td[colspan]::before{display:none}.mobile-records .channel-name{flex:1;min-width:0}.mobile-records .channel-name>div{min-width:0}.mobile-records .channel-logo{width:34px;height:34px}.mobile-records td .row-actions{flex:1}.mobile-records td .avatar{flex-shrink:0}.table-scroll,.ops-table{overflow:visible;max-width:100%}
}
@media(max-width:360px){.sidebar.mobile-navigation.nav-open nav{grid-template-columns:1fr}.top-actions button{font-size:11px}.stats .stat,.stats .ops-stat{padding:12px}.mobile-records td::before{flex-basis:62px}.page-head h1{font-size:23px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media(max-width:740px){#mobile-record-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#0e1623;color:#ecedf6;overflow:auto;box-sizing:border-box}#mobile-record-dialog::backdrop{background:#050a12cc}.mobile-record-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:16px;padding:12px 14px;background:#121b2a;border-bottom:1px solid #303d54}.mobile-record-head button{flex-shrink:0;background:#29213c;color:#ded0ff;border:1px solid #756098;border-radius:9px}.mobile-record-head strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#mobile-record-dialog #detail{border:0;border-radius:0;margin:0;max-width:100%;box-shadow:none;padding:18px 16px;overflow-wrap:anywhere}#mobile-record-dialog #detail textarea,#mobile-record-dialog #detail select,#mobile-record-dialog #detail input{width:100%;box-sizing:border-box}#mobile-record-dialog #detail dl{grid-template-columns:minmax(0,1fr);gap:6px}#mobile-record-dialog #detail dd{margin:0 0 12px}}
@media(max-width:740px){body>main{margin:0!important;padding:20px 14px!important;width:100%;box-sizing:border-box}body>main>h1{font-size:25px;line-height:1.3}body>main p{font-size:14px;line-height:1.65;overflow-wrap:anywhere}body>main>.panel{padding:16px!important}body>main label{display:block;font-size:13px;margin:10px 0 6px;color:#b6c2d6}body>main input:not([type=checkbox]),body>main select{display:block;width:100%;margin:8px 0 12px}body>main button{margin:4px 0;max-width:100%}#items>section{padding:16px!important;gap:12px!important;align-items:flex-start!important}#items>section>div{min-width:0}#items h2{font-size:17px;overflow-wrap:anywhere}#items img{max-width:54px;height:80px!important;flex-shrink:0}body>main dialog{padding:16px;box-sizing:border-box}body>main dialog h2{font-size:20px}#source-form label input,#source-form label select{margin-bottom:0}#list>section{padding:16px!important}#list button{width:100%}}

.profile-trigger{display:flex;align-items:center;gap:10px;width:100%;border:0!important;background:transparent!important;text-align:left;padding:8px!important}.profile-trigger .account{min-width:0;flex:1}.profile-trigger strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-trigger .avatar{flex-shrink:0;overflow:hidden}.profile-trigger .avatar img{width:100%;height:100%;object-fit:cover}.sidebar-bottom{position:relative}.profile-menu{position:absolute;left:8px;right:8px;bottom:100%;padding:8px;background:#141c2b;border:1px solid #364057;border-radius:12px;box-shadow:0 12px 32px #0008;z-index:20}.profile-menu[hidden]{display:none}.profile-menu button{display:block;width:100%;text-align:left;padding:10px;background:transparent;border:0;font-size:13px}.profile-menu button:hover,.profile-menu button:focus-visible{background:#2c2942}.profile-login{border-bottom:1px solid #35405a;padding:12px 0;overflow-wrap:anywhere}.sidebar nav [data-route=notifications]{white-space:nowrap}
@media(max-width:740px){.sidebar-bottom{display:flex!important;margin-top:10px;padding:8px 0 0}.profile-trigger{max-width:230px}.profile-menu{top:100%;bottom:auto;left:0;right:auto;width:min(250px,calc(100vw - 32px))}}
