
/* =========================================================
   MONTEIO WORKSPACE v4.2 — MOBILE APP SHELL
   Bottom navigation + non-overlapping phone layout
   ========================================================= */

.mw-mobile-nav,
.mw-mobile-sheet,
.mw-mobile-sheet-backdrop{display:none}

@media (max-width:800px){
  html.mw-mobile-shell-enabled,
  html.mw-mobile-shell-enabled body{
    width:100%;
    min-width:0;
    overflow-x:hidden;
  }

  html.mw-mobile-shell-enabled .workspace-body .app{
    min-height:100dvh;
    padding:0 0 calc(82px + env(safe-area-inset-bottom));
    background:var(--bg,#f6f7f9);
  }

  html.mw-mobile-shell-enabled .workspace-body .sidebar{
    display:none!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .main-shell{
    width:100%;
    min-width:0;
    min-height:100dvh;
    margin:0!important;
    border:0;
    border-radius:0!important;
    overflow:visible;
    box-shadow:none;
  }

  html.mw-mobile-shell-enabled .workspace-body .topbar{
    top:0;
    width:100%;
    min-width:0;
    height:calc(62px + env(safe-area-inset-top));
    padding:
      env(safe-area-inset-top)
      12px
      0;
    gap:8px;
    border-radius:0;
    z-index:30;
  }

  html.mw-mobile-shell-enabled .workspace-body #menuBtn{
    display:none!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .search-wrap{
    margin-left:0;
    min-width:0;
    max-width:none;
    height:42px;
    padding:0 11px;
    border-radius:14px;
  }

  html.mw-mobile-shell-enabled .workspace-body .search-wrap input{
    min-width:0;
    width:100%;
    font-size:12px;
  }

  html.mw-mobile-shell-enabled .workspace-body .top-actions{
    flex:none;
    gap:7px;
  }

  html.mw-mobile-shell-enabled .workspace-body .top-actions .soft-btn,
  html.mw-mobile-shell-enabled .workspace-body .theme-toggle b{
    display:none!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .theme-toggle{
    width:40px;
    min-width:40px;
    height:40px;
    padding:0;
  }

  html.mw-mobile-shell-enabled .workspace-body .top-actions>.avatar{
    width:40px;
    height:40px;
  }

  html.mw-mobile-shell-enabled .workspace-body .view-container{
    width:100%;
    min-width:0;
    max-width:none;
    min-height:calc(100dvh - 62px - env(safe-area-inset-top));
    padding:18px 13px calc(105px + env(safe-area-inset-bottom));
    overflow-x:hidden;
  }

  html.mw-mobile-shell-enabled .workspace-body .page-heading{
    margin-bottom:18px;
    gap:12px;
  }

  html.mw-mobile-shell-enabled .workspace-body .page-heading h1{
    font-size:25px;
    line-height:1.08;
  }

  html.mw-mobile-shell-enabled .workspace-body .metric-grid,
  html.mw-mobile-shell-enabled .workspace-body .clients-grid,
  html.mw-mobile-shell-enabled .workspace-body .dashboard-grid{
    grid-template-columns:1fr!important;
  }

  html.mw-mobile-shell-enabled .workspace-body :is(
    .panel,.metric-card,.client-card,.table-panel,.messaging-layout,
    .calendar-shell,.library-client-card,.strategy-card,.report-card,
    .collection-card,.production-job-card,.approval-dashboard-card
  ){
    min-width:0;
    max-width:100%;
  }

  html.mw-mobile-shell-enabled .workspace-body .table-panel{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav{
    position:fixed;
    left:10px;
    right:10px;
    bottom:calc(8px + env(safe-area-inset-bottom));
    height:70px;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:4px;
    padding:7px;
    z-index:1000;
    border:1px solid rgba(255,255,255,.11);
    border-radius:23px;
    background:rgba(12,14,18,.96);
    box-shadow:0 18px 46px rgba(0,0,0,.34);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav-btn{
    position:relative;
    min-width:0;
    border:0;
    border-radius:17px;
    background:transparent;
    color:#aeb4be;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    padding:5px 2px;
    font-family:inherit;
    font-size:9px;
    font-weight:650;
    line-height:1;
    white-space:nowrap;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav-btn .mw-mobile-icon{
    width:27px;
    height:24px;
    display:grid;
    place-items:center;
    border-radius:10px;
    font-size:17px;
    line-height:1;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav-btn.active{
    color:#fff;
    background:linear-gradient(135deg,#ff7a00,#ff5a23);
    box-shadow:0 9px 22px rgba(255,122,0,.24);
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav-btn.mw-more-active{
    color:#ff9a55;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-badge{
    position:absolute;
    right:9px;
    top:5px;
    min-width:15px;
    height:15px;
    padding:0 4px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:#ff4f8b;
    color:#fff;
    font-size:8px;
    font-weight:800;
    box-shadow:0 0 0 2px #11141a;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-backdrop{
    position:fixed;
    inset:0;
    display:block;
    z-index:1001;
    background:rgba(3,5,8,.57);
    opacity:0;
    pointer-events:none;
    transition:opacity .22s ease;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet{
    position:fixed;
    left:10px;
    right:10px;
    bottom:calc(8px + env(safe-area-inset-bottom));
    z-index:1002;
    display:flex;
    flex-direction:column;
    max-height:min(77dvh,720px);
    padding:8px 14px 16px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:28px;
    background:linear-gradient(180deg,#15191f,#090b0f);
    color:#fff;
    box-shadow:0 28px 80px rgba(0,0,0,.48);
    transform:translateY(calc(100% + 28px));
    transition:transform .26s cubic-bezier(.2,.78,.2,1);
  }

  html.mw-mobile-shell-enabled .workspace-body.mw-mobile-sheet-open{
    overflow:hidden;
  }

  html.mw-mobile-shell-enabled .workspace-body.mw-mobile-sheet-open .mw-mobile-sheet{
    transform:translateY(0);
  }

  html.mw-mobile-shell-enabled .workspace-body.mw-mobile-sheet-open .mw-mobile-sheet-backdrop{
    opacity:1;
    pointer-events:auto;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-handle{
    width:42px;
    height:4px;
    margin:0 auto 10px;
    border-radius:999px;
    background:#4d535d;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:2px 2px 12px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-head strong{
    font-size:17px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-close{
    width:38px;
    height:38px;
    border:0;
    border-radius:14px;
    background:#20252d;
    color:#fff;
    font-size:21px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:2px 1px 12px;
    -webkit-overflow-scrolling:touch;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-item{
    position:relative;
    min-width:0;
    min-height:62px;
    border:1px solid #272d36;
    border-radius:18px;
    background:#151920;
    color:#c7cbd2;
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 11px;
    text-align:left;
    font-family:inherit;
    font-size:11px;
    font-weight:650;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-item .mw-mobile-icon{
    width:37px;
    height:37px;
    flex:none;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:#20252d;
    color:#fff;
    font-size:18px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-item.active{
    border-color:rgba(255,122,0,.55);
    color:#fff;
    background:linear-gradient(135deg,rgba(255,122,0,.23),rgba(255,122,0,.05));
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-account{
    display:flex;
    align-items:center;
    gap:11px;
    padding:12px;
    margin-top:2px;
    border:1px solid #262c35;
    border-radius:19px;
    background:#11151a;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-account-avatar{
    width:40px;
    height:40px;
    border-radius:50%;
    overflow:hidden;
    display:grid;
    place-items:center;
    background:#fff;
    color:#111;
    font-weight:800;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-account-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-account-copy{
    min-width:0;
    flex:1;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-account-copy strong,
  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-account-copy small{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-account-copy small{
    margin-top:2px;
    color:#8f96a1;
    font-size:9px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-signout{
    border:0;
    border-radius:13px;
    background:#282028;
    color:#ff8eb1;
    padding:10px 12px;
    font-family:inherit;
    font-size:10px;
    font-weight:750;
  }
}

@media (max-width:380px){
  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav{
    left:6px;
    right:6px;
    gap:2px;
  }
  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav-btn{
    font-size:8px;
  }
  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   MONTEIO WORKSPACE v4.3 — COMPACT MOBILE REFINEMENT
   Smaller typography, tighter cards, compact top bar and alerts
   ========================================================= */
@media (max-width:800px){
  html.mw-mobile-shell-enabled .workspace-body{
    font-size:12px;
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }

  html.mw-mobile-shell-enabled .workspace-body .app{
    padding-bottom:calc(66px + env(safe-area-inset-bottom));
  }

  html.mw-mobile-shell-enabled .workspace-body .topbar{
    height:calc(54px + env(safe-area-inset-top));
    padding:env(safe-area-inset-top) 9px 0;
    gap:6px;
    background:linear-gradient(105deg,#12161d,#080b10);
    box-shadow:0 7px 18px rgba(0,0,0,.16);
  }

  html.mw-mobile-shell-enabled .workspace-body .search-wrap{
    height:35px;
    flex:1 1 auto;
    min-width:0;
    padding:0 10px;
    gap:6px;
    border-radius:11px;
    border-color:rgba(255,255,255,.09);
    background:rgba(255,255,255,.96);
    box-shadow:none;
  }

  html.mw-mobile-shell-enabled .workspace-body .search-wrap>span{
    font-size:14px;
    line-height:1;
  }

  html.mw-mobile-shell-enabled .workspace-body .search-wrap input{
    height:34px;
    padding:0;
    font-size:10.5px;
    line-height:1;
  }

  html.mw-mobile-shell-enabled .workspace-body .search-wrap input::placeholder{
    color:#8a909a;
    opacity:1;
  }

  html.mw-mobile-shell-enabled .workspace-body .top-actions{
    flex:0 0 auto;
    gap:5px;
  }

  html.mw-mobile-shell-enabled .workspace-body .theme-toggle,
  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-notification-btn{
    position:relative;
    width:33px;
    min-width:33px;
    height:33px;
    min-height:33px;
    padding:0;
    display:grid;
    place-items:center;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.10);
    color:#edf1f5;
    background:rgba(255,255,255,.065);
    box-shadow:none;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }

  html.mw-mobile-shell-enabled .workspace-body .theme-toggle span,
  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-notification-btn>span:first-child{
    font-size:14px;
    line-height:1;
  }

  html.mw-mobile-shell-enabled .workspace-body .top-actions>.avatar{
    width:32px;
    height:32px;
    border-width:1px;
    font-size:8px;
    box-shadow:none;
  }

  html.mw-mobile-shell-enabled .workspace-body .view-container{
    min-height:calc(100dvh - 54px - env(safe-area-inset-top));
    padding:13px 10px calc(82px + env(safe-area-inset-bottom));
  }

  html.mw-mobile-shell-enabled .workspace-body .view-container>*{
    animation-duration:.28s;
  }

  html.mw-mobile-shell-enabled .workspace-body .page-heading{
    align-items:flex-start;
    margin-bottom:13px;
    padding:0;
    gap:8px;
  }

  html.mw-mobile-shell-enabled .workspace-body .page-heading>div{
    min-width:0;
  }

  html.mw-mobile-shell-enabled .workspace-body .page-heading h1{
    margin:3px 0 4px;
    font-size:20px;
    line-height:1.12;
    letter-spacing:-.025em;
  }

  html.mw-mobile-shell-enabled .workspace-body .page-heading p{
    font-size:10px;
    line-height:1.45;
  }

  html.mw-mobile-shell-enabled .workspace-body .eyebrow{
    font-size:8px;
    letter-spacing:.13em;
  }

  html.mw-mobile-shell-enabled .workspace-body :is(p,small,li,dd,dt){
    line-height:1.45;
  }

  html.mw-mobile-shell-enabled .workspace-body .metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .metric-card{
    min-height:92px;
    padding:13px;
    border-radius:15px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .metric-card::after{
    width:72px;
    height:72px;
    right:-28px;
    bottom:-31px;
  }

  html.mw-mobile-shell-enabled .workspace-body .metric-card span{
    font-size:9px;
  }

  html.mw-mobile-shell-enabled .workspace-body .metric-card strong{
    margin-top:10px;
    font-size:24px;
    line-height:1;
  }

  html.mw-mobile-shell-enabled .workspace-body .metric-card small{
    display:block;
    margin-top:5px;
    font-size:8.5px;
  }

  html.mw-mobile-shell-enabled .workspace-body .dashboard-grid{
    gap:9px!important;
    margin-top:9px;
  }

  html.mw-mobile-shell-enabled .workspace-body :is(
    .panel,.client-card,.table-panel,.staff-dashboard-panel,.premium-client-section,
    .calendar-month-panel,.content-card,.calendar-directory-card,.library-client-card,
    .library-file-card,.strategy-card,.report-card,.collection-card,.todo-client-card,
    .client-dashboard-section,.premium-social-card,.premium-upcoming-card,
    .production-job-card,.production-notification-card,.agency-partner-card,
    .comment-thread-card,.wall-post,.wall-composer,.activity-row,.email-settings-card,
    .email-test-card,.email-log-card,.onboarding-section,.onboarding-guide,
    .production-brief-card,.production-files-section,.production-control-card,
    .production-activity-card,.partner-account-card,.partner-tour-page article
  ){
    border-radius:15px!important;
    box-shadow:0 8px 22px rgba(17,24,39,.045)!important;
  }

  html.mw-mobile-shell-enabled .workspace-body :is(
    .panel,.client-card,.staff-dashboard-panel,.premium-client-section,
    .calendar-month-panel,.content-card,.calendar-directory-card,.library-client-card,
    .library-file-card,.strategy-card,.report-card,.collection-card,.todo-client-card,
    .client-dashboard-section,.premium-social-card,.premium-upcoming-card,
    .production-job-card,.production-notification-card,.agency-partner-card,
    .comment-thread-card,.wall-post,.wall-composer,.activity-row,.email-settings-card,
    .email-test-card,.email-log-card,.onboarding-section,.onboarding-guide,
    .production-brief-card,.production-files-section,.production-control-card,
    .production-activity-card,.partner-account-card,.partner-tour-page article
  ){
    padding:13px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body :is(h2,h3,h4){
    letter-spacing:-.015em;
  }

  html.mw-mobile-shell-enabled .workspace-body .panel-head h2,
  html.mw-mobile-shell-enabled .workspace-body .section-title-row h2{
    font-size:13px;
  }

  html.mw-mobile-shell-enabled .workspace-body .panel-head p,
  html.mw-mobile-shell-enabled .workspace-body .section-title-row p{
    font-size:9px;
  }

  html.mw-mobile-shell-enabled .workspace-body .activity-item{
    gap:9px;
    padding:9px 0;
  }

  html.mw-mobile-shell-enabled .workspace-body .activity-icon{
    width:27px;
    height:27px;
    border-radius:8px;
    font-size:11px;
  }

  html.mw-mobile-shell-enabled .workspace-body .activity-item strong{
    font-size:10px;
  }

  html.mw-mobile-shell-enabled .workspace-body .activity-item p,
  html.mw-mobile-shell-enabled .workspace-body .compact-item small{
    font-size:8.5px;
  }

  html.mw-mobile-shell-enabled .workspace-body .client-card h2{
    font-size:14px;
  }

  html.mw-mobile-shell-enabled .workspace-body .workspace-logo{
    width:38px;
    height:38px;
    border-radius:11px;
    font-size:10px;
  }

  html.mw-mobile-shell-enabled .workspace-body .status-pill,
  html.mw-mobile-shell-enabled .workspace-body .tag{
    padding:5px 7px;
    font-size:8px;
  }

  html.mw-mobile-shell-enabled .workspace-body .client-meta{
    margin:13px 0;
    padding-top:10px;
    gap:7px;
  }

  html.mw-mobile-shell-enabled .workspace-body .client-meta span,
  html.mw-mobile-shell-enabled .workspace-body .client-meta strong{
    font-size:9px;
  }

  html.mw-mobile-shell-enabled .workspace-body :is(.primary-btn,.soft-btn,.danger-btn,.filter-pill,.text-btn){
    min-height:35px;
    padding:8px 11px;
    border-radius:10px;
    font-size:10px;
  }

  html.mw-mobile-shell-enabled .workspace-body label{
    gap:5px;
    font-size:9.5px;
  }

  html.mw-mobile-shell-enabled .workspace-body :is(input,textarea,select){
    min-height:39px;
    padding:9px 10px;
    border-radius:10px;
    font-size:10.5px;
  }

  html.mw-mobile-shell-enabled .workspace-body textarea{
    min-height:76px;
  }

  html.mw-mobile-shell-enabled .workspace-body .simple-table th,
  html.mw-mobile-shell-enabled .workspace-body .simple-table td{
    padding:10px 11px;
    font-size:9.5px;
  }

  html.mw-mobile-shell-enabled .workspace-body .simple-table th{
    font-size:8px;
  }

  html.mw-mobile-shell-enabled .workspace-body .messaging-layout{
    height:calc(100dvh - 145px);
    min-height:500px;
    border-radius:15px;
  }

  html.mw-mobile-shell-enabled .workspace-body .conversation-head,
  html.mw-mobile-shell-enabled .workspace-body .chat-head{
    padding:11px 12px;
  }

  html.mw-mobile-shell-enabled .workspace-body .conversation-item{
    padding:10px 11px;
    gap:8px;
  }

  html.mw-mobile-shell-enabled .workspace-body .conversation-item strong,
  html.mw-mobile-shell-enabled .workspace-body .chat-head h2{
    font-size:10.5px;
  }

  html.mw-mobile-shell-enabled .workspace-body .conversation-item small,
  html.mw-mobile-shell-enabled .workspace-body .chat-head p{
    font-size:8.5px;
  }

  html.mw-mobile-shell-enabled .workspace-body .message-thread{
    padding:12px;
  }

  html.mw-mobile-shell-enabled .workspace-body .message-bubble{
    max-width:84%;
    padding:8px 10px;
    border-radius:12px;
  }

  html.mw-mobile-shell-enabled .workspace-body .message-bubble p{
    font-size:10px;
  }

  html.mw-mobile-shell-enabled .workspace-body .message-composer{
    padding:8px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav{
    left:7px;
    right:7px;
    bottom:calc(5px + env(safe-area-inset-bottom));
    height:58px;
    gap:2px;
    padding:5px;
    border-radius:18px;
    background:rgba(10,12,16,.965);
    box-shadow:0 12px 32px rgba(0,0,0,.28);
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav-btn{
    gap:2px;
    padding:3px 1px;
    border-radius:13px;
    font-size:7.5px;
    font-weight:650;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav-btn .mw-mobile-icon{
    width:24px;
    height:21px;
    border-radius:8px;
    font-size:14px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav-btn.active{
    box-shadow:0 6px 15px rgba(255,122,0,.20);
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-badge{
    right:6px;
    top:3px;
    min-width:13px;
    height:13px;
    padding:0 3px;
    font-size:7px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet,
  html.mw-mobile-shell-enabled .workspace-body .mw-notification-sheet{
    left:7px;
    right:7px;
    bottom:calc(5px + env(safe-area-inset-bottom));
    max-height:min(74dvh,640px);
    padding:7px 10px 11px;
    border-radius:22px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-head,
  html.mw-mobile-shell-enabled .workspace-body .mw-notification-sheet-head{
    padding:1px 1px 8px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-head strong,
  html.mw-mobile-shell-enabled .workspace-body .mw-notification-sheet-head strong{
    font-size:14px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-close,
  html.mw-mobile-shell-enabled .workspace-body .mw-notification-sheet-close{
    width:31px;
    height:31px;
    border-radius:10px;
    font-size:17px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-grid{
    gap:6px;
    padding-bottom:8px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-item{
    min-height:52px;
    gap:8px;
    padding:8px 9px;
    border-radius:14px;
    font-size:9.5px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-item .mw-mobile-icon{
    width:31px;
    height:31px;
    border-radius:10px;
    font-size:14px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-account{
    gap:8px;
    padding:9px;
    border-radius:15px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-account-avatar{
    width:34px;
    height:34px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-account-copy strong{
    font-size:10px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-signout{
    padding:8px 9px;
    border-radius:10px;
    font-size:8.5px;
  }

  /* Compact notification centre */
  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-notification-btn{
    border:0;
    cursor:pointer;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-top-notification-badge{
    position:absolute;
    top:-4px;
    right:-4px;
    min-width:15px;
    height:15px;
    padding:0 4px;
    display:grid;
    place-items:center;
    border-radius:999px;
    color:#fff;
    background:#ff4f8b;
    box-shadow:0 0 0 2px #10141a;
    font-size:7px;
    font-weight:800;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-notification-backdrop{
    position:fixed;
    inset:0;
    z-index:1101;
    display:block;
    opacity:0;
    pointer-events:none;
    background:rgba(3,5,8,.56);
    transition:opacity .2s ease;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-notification-sheet{
    position:fixed;
    z-index:1102;
    display:flex;
    flex-direction:column;
    color:#fff;
    border:1px solid rgba(255,255,255,.10);
    background:linear-gradient(180deg,#15191f,#090b0f);
    box-shadow:0 24px 68px rgba(0,0,0,.46);
    transform:translateY(calc(100% + 24px));
    transition:transform .24s cubic-bezier(.2,.78,.2,1);
  }

  html.mw-mobile-shell-enabled .workspace-body.mw-notification-open{
    overflow:hidden;
  }

  html.mw-mobile-shell-enabled .workspace-body.mw-notification-open .mw-notification-sheet{
    transform:translateY(0);
  }

  html.mw-mobile-shell-enabled .workspace-body.mw-notification-open .mw-notification-backdrop{
    opacity:1;
    pointer-events:auto;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-notification-sheet-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-notification-sheet-close{
    border:0;
    color:#fff;
    background:#20252d;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-notification-list{
    display:grid;
    gap:6px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-notification-item{
    min-height:53px;
    width:100%;
    display:grid;
    grid-template-columns:31px 1fr auto;
    align-items:center;
    gap:9px;
    padding:8px 9px;
    border:1px solid #282e37;
    border-radius:14px;
    color:#d8dde4;
    background:#151920;
    text-align:left;
    font-family:inherit;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-notification-item-icon{
    width:31px;
    height:31px;
    display:grid;
    place-items:center;
    border-radius:10px;
    color:#fff;
    background:#20252d;
    font-size:14px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-notification-item strong,
  html.mw-mobile-shell-enabled .workspace-body .mw-notification-item small{
    display:block;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-notification-item strong{
    font-size:10px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-notification-item small{
    margin-top:2px;
    color:#8f97a3;
    font-size:8px;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-notification-count{
    min-width:23px;
    height:23px;
    padding:0 6px;
    display:grid;
    place-items:center;
    border-radius:999px;
    color:#fff;
    background:linear-gradient(135deg,#ff7a00,#ff5c25);
    font-size:8px;
    font-weight:800;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-notification-empty{
    padding:24px 12px;
    border:1px dashed #303640;
    border-radius:15px;
    color:#929aa5;
    text-align:center;
    font-size:10px;
  }
}

@media (max-width:360px){
  html.mw-mobile-shell-enabled .workspace-body .top-actions>.avatar{display:none}
  html.mw-mobile-shell-enabled .workspace-body .metric-grid{grid-template-columns:1fr!important}
  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-sheet-grid{grid-template-columns:1fr 1fr}
}

/* =========================================================
   MONTEIO WORKSPACE v4.4 — GENUINE COMPACT MOBILE INTERFACE
   ========================================================= */

@media (max-width:800px){

  html,
  body{
    width:100%;
    min-width:0;
    overflow-x:hidden;
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }

  /* =========================
     CENTRED MOBILE LOGIN
     ========================= */

  body.auth-body{
    min-height:100dvh;
    margin:0;
    overflow-x:hidden;
  }

  .auth-body .mw-auth-screen-v36{
    width:100%;
    min-height:100dvh;
    padding:
      max(12px,env(safe-area-inset-top))
      12px
      max(12px,env(safe-area-inset-bottom));
    display:grid;
    place-items:center!important;
    align-items:center!important;
    overflow-y:auto;
  }

  .auth-body .mw-auth-wrap-v36{
    width:min(350px,calc(100vw - 24px));
    gap:10px;
    margin:auto;
  }

  .auth-body .mw-auth-brand-v36{
    margin:0;
  }

  .auth-body .mw-auth-logo-v37{
    width:min(245px,70vw);
    max-height:72px;
    object-fit:contain;
  }

  .auth-body .mw-auth-brand-v37 .mw-auth-workspace-name{
    margin-top:4px;
    font-size:13px;
    line-height:1;
    letter-spacing:.24em;
  }

  .auth-body .mw-auth-card-v36{
    width:100%;
    padding:18px 16px 16px;
    border-radius:21px;
    box-shadow:0 18px 48px rgba(0,0,0,.38);
  }

  .auth-body .mw-auth-intro-v36{
    margin-bottom:12px;
  }

  .auth-body .mw-auth-intro-v36 h1{
    margin:0 0 4px;
    font-size:25px;
    line-height:1.05;
  }

  .auth-body .mw-auth-intro-v36 p{
    font-size:8.5px;
    line-height:1.4;
    letter-spacing:.045em;
  }

  .auth-body .mw-login-choice-v36{
    margin-bottom:11px;
    padding:4px;
    gap:4px;
    border-radius:13px;
  }

  .auth-body .mw-login-choice-btn{
    min-height:40px;
    padding:5px 7px;
    grid-template-columns:28px 1fr;
    gap:7px;
    border-radius:10px;
    font-size:10px;
  }

  .auth-body .mw-choice-icon{
    width:28px;
    height:28px;
    border-radius:9px;
    font-size:9px;
  }

  .auth-body .mw-login-choice-v36 strong{
    font-size:10px;
  }

  .auth-body .mw-auth-form-v36{
    gap:10px;
  }

  .auth-body .mw-auth-field-wrap input{
    height:42px;
    padding:0 43px 0 13px;
    border-radius:11px!important;
    font-size:10.5px;
  }

  .auth-body .mw-auth-field-wrap>svg,
  .auth-body .mw-password-toggle{
    right:13px;
    width:19px;
    height:19px;
  }

  .auth-body .mw-password-toggle svg{
    width:19px;
    height:19px;
  }

  .auth-body .mw-auth-submit-v36{
    height:42px;
    margin-top:0;
    border-radius:11px!important;
    font-size:10.5px;
    letter-spacing:.07em;
  }

  .auth-body .mw-auth-partner-signup-v36{
    margin-top:11px;
    font-size:8.5px;
  }

  .auth-body .mw-auth-footer-v36{
    gap:2px;
    font-size:8px;
  }

  .auth-body .mw-auth-footer-v36 small{
    font-size:6.5px;
  }

  /* =========================
     COMPACT TOP BAR
     ========================= */

  html.mw-mobile-shell-enabled .workspace-body{
    font-size:11px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .topbar{
    height:calc(47px + env(safe-area-inset-top))!important;
    padding:env(safe-area-inset-top) 8px 0!important;
    gap:5px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .search-wrap{
    height:30px!important;
    padding:0 8px!important;
    gap:5px!important;
    border-radius:9px!important;
    box-shadow:none!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .search-wrap>span{
    font-size:12px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .search-wrap input{
    height:29px!important;
    min-height:29px!important;
    padding:0!important;
    font-size:9.5px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .theme-toggle{
    width:29px!important;
    min-width:29px!important;
    height:29px!important;
    min-height:29px!important;
    border-radius:9px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .theme-toggle span{
    font-size:12px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .top-actions>.avatar{
    width:29px!important;
    height:29px!important;
    font-size:7px!important;
    padding:2px!important;
  }

  /* Notifications remain hidden until the notification phase */
  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-notification-btn,
  html.mw-mobile-shell-enabled .workspace-body .mw-notification-sheet,
  html.mw-mobile-shell-enabled .workspace-body .mw-notification-backdrop{
    display:none!important;
  }

  /* =========================
     COMPACT DASHBOARD
     ========================= */

  html.mw-mobile-shell-enabled .workspace-body .view-container{
    padding:9px 8px calc(70px + env(safe-area-inset-bottom))!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .admin-dashboard-hero{
    min-height:0!important;
    padding:17px 15px!important;
    grid-template-columns:1fr!important;
    gap:0!important;
    border-radius:18px!important;
    box-shadow:0 13px 30px rgba(18,22,30,.14)!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .admin-dashboard-visual{
    display:none!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .admin-dashboard-copy h1{
    margin:7px 0 8px!important;
    font-size:23px!important;
    line-height:1.06!important;
    letter-spacing:-.035em!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .admin-dashboard-copy p{
    max-width:100%!important;
    font-size:9.5px!important;
    line-height:1.5!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .admin-dashboard-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
    margin-top:13px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .hero-primary-btn,
  html.mw-mobile-shell-enabled .workspace-body .hero-soft-btn{
    width:100%!important;
    min-height:36px!important;
    padding:7px 8px!important;
    border-radius:10px!important;
    font-size:9px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .metric-grid.premium-metrics{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    margin-top:8px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .premium-metrics .metric-card{
    min-height:86px!important;
    padding:10px!important;
    border-radius:14px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .premium-metrics .metric-icon{
    width:27px!important;
    height:27px!important;
    margin-bottom:7px!important;
    border-radius:8px!important;
    font-size:12px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .premium-metrics .metric-card span{
    font-size:8px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .premium-metrics .metric-card strong{
    margin-top:6px!important;
    font-size:21px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .premium-metrics .metric-card small{
    margin-top:3px!important;
    font-size:7px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .staff-dashboard-grid{
    grid-template-columns:1fr!important;
    gap:8px!important;
    margin-top:8px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .staff-dashboard-panel{
    padding:11px!important;
    border-radius:14px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .staff-panel-head{
    margin-bottom:9px!important;
    gap:8px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .staff-panel-head h2{
    margin-top:3px!important;
    font-size:12px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .staff-client-strip{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .staff-client-profile{
    padding:7px!important;
    gap:6px!important;
    border-radius:11px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .staff-client-profile>span,
  html.mw-mobile-shell-enabled .workspace-body .staff-client-logo{
    width:29px!important;
    height:29px!important;
    border-radius:9px!important;
    font-size:8px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .staff-client-profile strong{
    font-size:8.5px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .staff-client-profile small{
    font-size:6.8px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .staff-upcoming-grid{
    grid-template-columns:1fr!important;
    gap:6px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .staff-upcoming-item{
    padding:7px!important;
    grid-template-columns:54px 1fr!important;
    gap:7px!important;
    border-radius:11px!important;
  }

  /* =========================
     GENERAL MOBILE CARDS
     ========================= */

  html.mw-mobile-shell-enabled .workspace-body .page-heading{
    margin-bottom:10px!important;
    gap:6px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .page-heading h1{
    margin:2px 0 3px!important;
    font-size:18px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .page-heading p{
    font-size:8.5px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .eyebrow{
    font-size:7px!important;
    letter-spacing:.12em!important;
  }

  html.mw-mobile-shell-enabled .workspace-body :is(
    .panel,.client-card,.staff-dashboard-panel,.premium-client-section,
    .client-dashboard-section,.content-card,.calendar-directory-card,
    .library-client-card,.library-file-card,.strategy-card,.report-card,
    .collection-card,.todo-client-card,.production-job-card,
    .production-notification-card,.agency-partner-card
  ){
    padding:10px!important;
    border-radius:13px!important;
    box-shadow:0 6px 16px rgba(17,24,39,.04)!important;
  }

  html.mw-mobile-shell-enabled .workspace-body :is(
    .primary-btn,.soft-btn,.danger-btn,.filter-pill,.text-btn
  ){
    min-height:32px!important;
    padding:6px 9px!important;
    border-radius:9px!important;
    font-size:9px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body :is(input,textarea,select){
    min-height:35px!important;
    padding:7px 9px!important;
    border-radius:9px!important;
    font-size:9.5px!important;
  }

  /* =========================
     CLIENT MOBILE DASHBOARD
     ========================= */

  html.mw-mobile-shell-enabled .workspace-body .client-premium-hero{
    min-height:0!important;
    padding:17px 15px!important;
    border-radius:18px!important;
    grid-template-columns:1fr!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .client-premium-orbit{
    display:none!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .client-premium-copy h2{
    margin:7px 0 8px!important;
    font-size:23px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .client-premium-copy>p{
    font-size:9.5px!important;
    line-height:1.5!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .client-package-pill{
    margin-top:12px!important;
    padding:8px 10px!important;
    border-radius:10px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .client-package-pill strong{
    font-size:9px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .client-glance-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    margin:8px 0!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .client-glance-grid article{
    padding:10px!important;
    border-radius:13px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .client-glance-grid span{
    font-size:7px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .client-glance-grid strong{
    margin:7px 0 4px!important;
    font-size:21px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .client-glance-grid small{
    font-size:7px!important;
  }

  /* =========================
     SMALL BOTTOM NAVIGATION
     ========================= */

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav{
    left:7px!important;
    right:7px!important;
    bottom:calc(5px + env(safe-area-inset-bottom))!important;
    height:53px!important;
    padding:4px!important;
    gap:2px!important;
    border-radius:17px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav-btn{
    padding:2px 1px!important;
    gap:1px!important;
    border-radius:12px!important;
    font-size:7px!important;
  }

  html.mw-mobile-shell-enabled .workspace-body .mw-mobile-nav-btn .mw-mobile-icon{
    width:21px!important;
    height:19px!important;
    border-radius:7px!important;
    font-size:12px!important;
  }
}

@media (max-width:360px){
  .auth-body .mw-auth-wrap-v36{
    width:calc(100vw - 20px);
  }

  html.mw-mobile-shell-enabled .workspace-body .staff-client-strip{
    grid-template-columns:1fr!important;
  }
}

@media (max-height:650px) and (max-width:800px){
  .auth-body .mw-auth-screen-v36{
    place-items:start center!important;
  }

  .auth-body .mw-auth-wrap-v36{
    margin:8px auto;
  }

  .auth-body .mw-auth-logo-v37{
    max-height:58px;
  }
}