/* Cloud Design v1.3.14 — MOBILE UX REBUILD
   Replaces the bulky v1.3.13 phone layout with a compact, native-feeling workspace.
   Desktop is intentionally untouched. */

@media (max-width:900px){
  :root{
    --cd14-bg:#080b12;
    --cd14-surface:#101521;
    --cd14-surface-2:#151b29;
    --cd14-surface-3:#0c1019;
    --cd14-border:rgba(255,255,255,.075);
    --cd14-border-strong:rgba(151,116,255,.22);
    --cd14-text:#f5f6fb;
    --cd14-muted:#9299ab;
    --cd14-muted-2:#737b8f;
    --cd14-accent:#8b64f7;
    --cd14-accent-2:#a883ff;
    --cd14-danger:#ff7186;
    --cd14-good:#62d6a0;
    --cd14-radius:18px;
    --cd14-pad:12px;
    --staff-appbar-h:54px;
    --staff-bottom-h:64px;
  }

  html{background:var(--cd14-bg)!important;scroll-padding-top:62px}
  body.has-mobile-workspace.cd-mobile-rebuild-1314{
    background:var(--cd14-bg)!important;color:var(--cd14-text)!important;overflow-x:hidden!important;
    padding-top:0!important;padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;
  }
  body.has-mobile-workspace.cd-mobile-rebuild-1314 *{box-sizing:border-box}
  body.has-mobile-workspace.cd-mobile-rebuild-1314 .site-header,
  body.has-mobile-workspace.cd-mobile-rebuild-1314 .site-footer,
  body.has-mobile-workspace.cd-mobile-rebuild-1314 .mobile-menu,
  body.has-mobile-workspace.cd-mobile-rebuild-1314 .guest-chat{display:none!important}

  /* ---------- Compact top app bar ---------- */
  body.cd-mobile-rebuild-1314 .staff-mobile-appbar{
    display:flex!important;align-items:center!important;position:sticky!important;top:0!important;z-index:4200!important;
    height:calc(54px + env(safe-area-inset-top,0px))!important;
    padding:calc(6px + env(safe-area-inset-top,0px)) 10px 6px!important;gap:7px!important;
    background:rgba(8,11,18,.94)!important;border-bottom:1px solid rgba(255,255,255,.06)!important;
    box-shadow:0 8px 24px rgba(0,0,0,.13)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;
  }
  body.cd-mobile-rebuild-1314 .staff-mobile-brand{
    display:grid!important;place-items:center!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;
    flex:0 0 38px!important;padding:3px!important;border-radius:12px!important;background:rgba(255,255,255,.035)!important;
    border:1px solid rgba(255,255,255,.055)!important;
  }
  body.cd-mobile-rebuild-1314 .staff-mobile-brand-mark{width:30px!important;height:30px!important;flex:0 0 30px!important;border-radius:9px!important;overflow:hidden!important}
  body.cd-mobile-rebuild-1314 .staff-mobile-brand-mark img{width:100%!important;height:100%!important;object-fit:cover!important}
  body.cd-mobile-rebuild-1314 .staff-mobile-brand-copy,
  body.cd-mobile-rebuild-1314 .staff-mobile-brand-arrow{display:none!important}
  body.cd-mobile-rebuild-1314 .staff-mobile-section{
    display:block!important;flex:1!important;min-width:0!important;padding:0 3px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    text-align:left!important;color:#f2f3f8!important;font-size:.9rem!important;font-weight:760!important;letter-spacing:-.018em!important;
  }
  body.cd-mobile-rebuild-1314 .staff-mobile-app-actions{display:flex!important;gap:5px!important;align-items:center!important}
  body.cd-mobile-rebuild-1314 .staff-mobile-icon-action,
  body.cd-mobile-rebuild-1314 .staff-mobile-profile-action{
    width:38px!important;height:38px!important;min-height:38px!important;border-radius:12px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.055)!important;
  }
  body.cd-mobile-rebuild-1314 .staff-mobile-icon-action svg{width:19px!important;height:19px!important}

  /* ---------- Main canvas ---------- */
  body.cd-mobile-rebuild-1314 .dashboard-shell{padding:0 0 14px!important;overflow:visible!important}
  body.cd-mobile-rebuild-1314 .dashboard-shell>.container,
  body.cd-mobile-rebuild-1314 .dashboard-grid,
  body.cd-mobile-rebuild-1314 .dashboard-main{
    width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding-left:0!important;padding-right:0!important;
  }
  body.cd-mobile-rebuild-1314 .dashboard-grid{display:block!important}
  body.cd-mobile-rebuild-1314 .dashboard-main{padding:0 var(--cd14-pad)!important;overflow:visible!important}

  body.cd-mobile-rebuild-1314 .dashboard-head{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;
    margin:12px 0 12px!important;padding:0!important;
  }
  body.cd-mobile-rebuild-1314 .dashboard-head>div{min-width:0!important}
  body.cd-mobile-rebuild-1314 .dashboard-head .eyebrow{margin-bottom:3px!important;color:#9a83ef!important;font-size:.62rem!important;letter-spacing:.11em!important}
  body.cd-mobile-rebuild-1314 .dashboard-head h1{
    margin:0!important;color:#f7f8fc!important;font-size:1.72rem!important;line-height:1.08!important;letter-spacing:-.045em!important;
  }
  body.cd-mobile-rebuild-1314 .dashboard-head p{margin:4px 0 0!important;color:var(--cd14-muted)!important;font-size:.79rem!important;line-height:1.42!important}
  body.cd-mobile-rebuild-1314 .dashboard-user-title{display:flex!important;align-items:center!important;gap:9px!important}
  body.cd-mobile-rebuild-1314 .dashboard-user-title .profile-avatar{width:40px!important;height:40px!important;flex:0 0 40px!important}
  body.cd-mobile-rebuild-1314 .profile-mini-link{font-size:.7rem!important;color:#9ba1b2!important}

  body.cd-mobile-rebuild-1314 .section-tight{margin-top:18px!important}
  body.cd-mobile-rebuild-1314 .section-head{
    display:flex!important;align-items:end!important;justify-content:space-between!important;gap:10px!important;margin:0 0 9px!important;
  }
  body.cd-mobile-rebuild-1314 .section-head h2,
  body.cd-mobile-rebuild-1314 .settings-section h2,
  body.cd-mobile-rebuild-1314 .card h2{
    font-size:1.08rem!important;line-height:1.2!important;letter-spacing:-.025em!important;margin:0!important;
  }
  body.cd-mobile-rebuild-1314 .section-head .link-arrow{font-size:.72rem!important;white-space:nowrap!important}

  /* ---------- Surfaces ---------- */
  body.cd-mobile-rebuild-1314 .dashboard-main>.card,
  body.cd-mobile-rebuild-1314 .dashboard-main>.panel,
  body.cd-mobile-rebuild-1314 .dashboard-main .card,
  body.cd-mobile-rebuild-1314 .settings-section,
  body.cd-mobile-rebuild-1314 .settings-card,
  body.cd-mobile-rebuild-1314 .legal-settings-card,
  body.cd-mobile-rebuild-1314 .access-role-card{
    border-color:var(--cd14-border)!important;border-radius:var(--cd14-radius)!important;
  }
  body.cd-mobile-rebuild-1314 .dashboard-main>.card,
  body.cd-mobile-rebuild-1314 .dashboard-main>.panel,
  body.cd-mobile-rebuild-1314 .settings-section,
  body.cd-mobile-rebuild-1314 .legal-settings-card{
    padding:12px!important;background:linear-gradient(180deg,rgba(17,22,34,.98),rgba(11,15,24,.99))!important;
    box-shadow:0 8px 24px rgba(0,0,0,.12)!important;
  }
  body.cd-mobile-rebuild-1314 .muted{color:var(--cd14-muted)!important}

  /* ---------- Controls ---------- */
  body.cd-mobile-rebuild-1314 input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  body.cd-mobile-rebuild-1314 select,
  body.cd-mobile-rebuild-1314 textarea{
    width:100%!important;max-width:100%!important;min-width:0!important;border-radius:12px!important;
    border:1px solid rgba(255,255,255,.09)!important;background:#0d121c!important;color:#f4f5f8!important;
    box-shadow:none!important;font-size:16px!important;
  }
  body.cd-mobile-rebuild-1314 input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  body.cd-mobile-rebuild-1314 select{height:44px!important;min-height:44px!important;padding-top:0!important;padding-bottom:0!important}
  body.cd-mobile-rebuild-1314 textarea{min-height:92px!important;padding:11px!important;line-height:1.45!important}
  body.cd-mobile-rebuild-1314 label{font-size:.72rem!important;color:#aab0bf!important;line-height:1.35!important}
  body.cd-mobile-rebuild-1314 button,
  body.cd-mobile-rebuild-1314 .btn,
  body.cd-mobile-rebuild-1314 .primary-btn,
  body.cd-mobile-rebuild-1314 .ghost-btn{touch-action:manipulation}
  body.cd-mobile-rebuild-1314 .primary-btn,
  body.cd-mobile-rebuild-1314 .ghost-btn,
  body.cd-mobile-rebuild-1314 .danger-btn{
    min-height:42px!important;border-radius:12px!important;padding:9px 13px!important;font-size:.78rem!important;line-height:1.12!important;
  }
  body.cd-mobile-rebuild-1314 .primary-btn{background:linear-gradient(135deg,#7756ea,#9a70ff)!important;box-shadow:0 8px 20px rgba(119,86,234,.18)!important}
  body.cd-mobile-rebuild-1314 .ghost-btn{background:rgba(255,255,255,.035)!important;border-color:rgba(255,255,255,.075)!important}
  body.cd-mobile-rebuild-1314 .text-btn{font-size:.75rem!important}

  /* ---------- Header action groups: one clean row, no giant tiles ---------- */
  body.cd-mobile-rebuild-1314 .dashboard-head .inline-actions,
  body.cd-mobile-rebuild-1314 .messages-head-actions-v131,
  body.cd-mobile-rebuild-1314 .project-admin-head-final>.inline-actions{
    display:flex!important;flex-wrap:wrap!important;gap:7px!important;width:100%!important;margin:0!important;
  }
  body.cd-mobile-rebuild-1314 .dashboard-head .inline-actions>*{flex:1 1 120px!important;min-width:0!important}
  body.cd-mobile-rebuild-1314 .dashboard-head .inline-actions>a,
  body.cd-mobile-rebuild-1314 .dashboard-head .inline-actions>button,
  body.cd-mobile-rebuild-1314 .dashboard-head .inline-actions form>*{width:100%!important}

  /* ---------- Search/filter bars ---------- */
  body.cd-mobile-rebuild-1314 .user-search-v1217,
  body.cd-mobile-rebuild-1314 .project-search-final{
    display:grid!important;grid-template-columns:minmax(0,1fr) 84px!important;gap:7px!important;padding:8px!important;margin:0 0 10px!important;
    background:rgba(14,18,28,.9)!important;border:1px solid var(--cd14-border)!important;border-radius:15px!important;
  }
  body.cd-mobile-rebuild-1314 .user-search-v1217 input,
  body.cd-mobile-rebuild-1314 .project-search-final input{height:42px!important}
  body.cd-mobile-rebuild-1314 .user-search-v1217 button,
  body.cd-mobile-rebuild-1314 .project-search-final button{width:84px!important;min-width:84px!important;height:42px!important;min-height:42px!important;padding:0 10px!important}
  body.cd-mobile-rebuild-1314 .lead-filter-v130{
    display:grid!important;grid-template-columns:1fr!important;gap:7px!important;padding:8px!important;margin:0 0 10px!important;background:rgba(14,18,28,.9)!important;
  }
  body.cd-mobile-rebuild-1314 .lead-filter-v130 button{width:100%!important}

  /* ---------- USERS: dedicated mobile cards, not a table squeezed into cards ---------- */
  body.cd-mobile-rebuild-1314 .users-table-v1217{display:none!important}
  .mobile-users-list-v1314{display:grid!important;gap:9px!important}
  .mobile-user-card-v1314{
    padding:11px!important;border:1px solid var(--cd14-border)!important;border-radius:17px!important;
    background:linear-gradient(180deg,rgba(17,22,35,.99),rgba(11,15,24,.99))!important;box-shadow:0 7px 22px rgba(0,0,0,.11)!important;
  }
  .mobile-user-head-v1314{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
  .mobile-user-avatar-v1314{
    display:grid!important;place-items:center!important;width:38px!important;height:38px!important;flex:0 0 38px!important;border-radius:12px!important;
    color:#eeeaff!important;font-size:.88rem!important;font-weight:850!important;background:linear-gradient(135deg,rgba(133,93,245,.32),rgba(133,93,245,.08))!important;border:1px solid rgba(157,122,255,.18)!important;
  }
  .mobile-user-name-v1314{min-width:0!important;flex:1!important}
  .mobile-user-name-v1314 strong{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:.93rem!important;color:#fff!important}
  .mobile-user-name-v1314 small{display:block!important;margin-top:2px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#80889a!important;font-size:.68rem!important}
  .mobile-user-role-pill-v1314{
    max-width:42%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;flex:0 0 auto!important;
    padding:5px 8px!important;border-radius:999px!important;border:1px solid rgba(154,118,255,.19)!important;background:rgba(130,91,242,.11)!important;color:#beaaff!important;font-size:.64rem!important;font-weight:720!important;
  }
  .mobile-user-protected-v1314{margin-top:8px!important;padding:7px 9px!important;border-radius:11px!important;background:rgba(137,98,244,.08)!important;color:#ac9ada!important;font-size:.68rem!important;line-height:1.35!important}
  .mobile-user-facts-v1314{display:grid!important;gap:0!important;margin-top:8px!important;border-top:1px solid rgba(255,255,255,.055)!important}
  .mobile-user-fact-v1314{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;padding:7px 1px!important;border-bottom:1px solid rgba(255,255,255,.045)!important}
  .mobile-user-fact-v1314:last-child{border-bottom:0!important}
  .mobile-user-fact-v1314>span:first-child{color:#727a8c!important;font-size:.64rem!important;font-weight:680!important}
  .mobile-user-fact-v1314>span:last-child{min-width:0!important;color:#dfe2ea!important;font-size:.74rem!important;overflow-wrap:anywhere!important}
  .mobile-user-badges-v1314{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
  .mobile-user-badges-v1314 .status-pill{min-height:0!important;padding:4px 7px!important;font-size:.61rem!important}
  .mobile-user-admin-v1314{display:grid!important;gap:7px!important;margin-top:9px!important;padding-top:9px!important;border-top:1px solid rgba(151,116,255,.12)!important}
  .mobile-role-form-v1314{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;align-items:end!important}
  .mobile-role-form-v1314 label{display:grid!important;gap:4px!important;margin:0!important}
  .mobile-role-form-v1314 select{height:42px!important;min-height:42px!important}
  .mobile-role-form-v1314 button{height:42px!important;min-height:42px!important;white-space:nowrap!important}
  .mobile-user-secondary-actions-v1314{display:grid!important;grid-template-columns:1fr!important;gap:6px!important}
  .mobile-user-secondary-actions-v1314 form{margin:0!important;width:100%!important}
  .mobile-user-secondary-actions-v1314 button{width:100%!important;justify-content:center!important;min-height:40px!important}
  .mobile-user-secondary-actions-v1314 .danger{color:#ff899a!important;background:rgba(255,94,116,.055)!important;border-color:rgba(255,113,134,.13)!important}

  /* compact owner notice */
  body.cd-mobile-rebuild-1314 .primary-owner-note-v1217,
  body.cd-mobile-rebuild-1314 .primary-owner-note-v1219{
    display:block!important;margin:0!important;padding:8px 10px!important;border-radius:12px!important;background:rgba(130,91,242,.075)!important;border:1px solid rgba(151,116,255,.13)!important;
  }
  body.cd-mobile-rebuild-1314 .primary-owner-note-v1217 span{font-size:.69rem!important}
  body.cd-mobile-rebuild-1314 .primary-owner-note-v1217 small{margin-top:2px!important;font-size:.62rem!important;line-height:1.35!important;color:#9299aa!important}

  /* ---------- Generic admin tables: compact cards only when a dedicated mobile layout does not exist ---------- */
  body.cd-mobile-rebuild-1314 .table-wrap.cd14-mobile-table-wrap{overflow:visible!important;border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table{display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important}
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table>thead{display:none!important}
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table>tbody{display:grid!important;gap:8px!important;width:100%!important}
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table>tbody>tr{
    display:block!important;width:100%!important;padding:9px 10px!important;border:1px solid var(--cd14-border)!important;border-radius:15px!important;
    background:linear-gradient(180deg,rgba(16,21,33,.98),rgba(11,15,24,.99))!important;overflow:hidden!important;
  }
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table>tbody>tr>td{
    display:grid!important;grid-template-columns:84px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;width:100%!important;max-width:100%!important;
    padding:6px 0!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.042)!important;background:transparent!important;white-space:normal!important;text-align:left!important;font-size:.73rem!important;line-height:1.32!important;
  }
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table>tbody>tr>td:last-child{border-bottom:0!important}
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table>tbody>tr>td::before{content:attr(data-cd14-label);color:#70798b!important;font-size:.61rem!important;font-weight:700!important}
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table>tbody>tr>td.cd14-primary-cell{display:block!important;padding:2px 0 8px!important;font-size:.84rem!important;font-weight:760!important;color:#fff!important}
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table>tbody>tr>td.cd14-primary-cell::before{display:block!important;margin-bottom:2px!important;color:#9c86e9!important;font-size:.58rem!important;text-transform:uppercase!important;letter-spacing:.07em!important}
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table>tbody>tr>td.cd14-actions-cell{display:block!important;padding-top:8px!important}
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table>tbody>tr>td.cd14-actions-cell::before{display:none!important}
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table td form,
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table td .inline-actions{max-width:100%!important}
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table td input,
  body.cd-mobile-rebuild-1314 table.cd14-mobile-table td select{min-width:0!important;max-width:100%!important}

  /* ---------- Dashboard ---------- */
  body.cd-mobile-rebuild-1314 .staff-topline{display:grid!important;gap:7px!important;margin:0 0 10px!important}
  body.cd-mobile-rebuild-1314 .presence-toggle{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:7px!important;align-items:center!important;padding:8px 9px!important;border-radius:13px!important}
  body.cd-mobile-rebuild-1314 .presence-toggle span{font-size:.7rem!important;line-height:1.25!important}
  body.cd-mobile-rebuild-1314 .presence-toggle button{min-height:34px!important;height:34px!important;padding:0 9px!important;font-size:.66rem!important}
  body.cd-mobile-rebuild-1314 .backup-status-link{width:max-content!important;max-width:100%!important;font-size:.62rem!important}
  body.cd-mobile-rebuild-1314 .metric-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:0!important}
  body.cd-mobile-rebuild-1314 .metric-card{padding:10px!important;min-height:78px!important;border-radius:15px!important}
  body.cd-mobile-rebuild-1314 .metric-card b{font-size:1.38rem!important;line-height:1!important}
  body.cd-mobile-rebuild-1314 .metric-card span{margin-top:5px!important;font-size:.66rem!important;line-height:1.25!important}
  body.cd-mobile-rebuild-1314 .visitor-summary-final{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  body.cd-mobile-rebuild-1314 .visitor-summary-final .card{padding:9px 7px!important;border-radius:14px!important;min-width:0!important}
  body.cd-mobile-rebuild-1314 .visitor-summary-final span{font-size:.59rem!important}
  body.cd-mobile-rebuild-1314 .visitor-summary-final b{font-size:1.18rem!important}
  body.cd-mobile-rebuild-1314 .visitor-summary-final small{display:none!important}
  body.cd-mobile-rebuild-1314 .analytics-accuracy-note{font-size:.66rem!important;line-height:1.4!important;margin:8px 0!important}
  body.cd-mobile-rebuild-1314 .analytics-mini{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  body.cd-mobile-rebuild-1314 .analytics-mini .card{padding:10px!important}
  body.cd-mobile-rebuild-1314 .analytics-event-row{padding:6px 0!important;font-size:.72rem!important}

  /* ---------- Project / lead lists ---------- */
  body.cd-mobile-rebuild-1314 .lead-card-list-v130,
  body.cd-mobile-rebuild-1314 .project-list{display:grid!important;gap:8px!important}
  body.cd-mobile-rebuild-1314 .lead-card-v130{padding:11px!important;border-radius:16px!important}
  body.cd-mobile-rebuild-1314 .lead-card-top{gap:8px!important;align-items:start!important}
  body.cd-mobile-rebuild-1314 .lead-card-top h3{font-size:.92rem!important;margin-top:2px!important}
  body.cd-mobile-rebuild-1314 .lead-card-v130>p{font-size:.72rem!important;line-height:1.4!important;margin:7px 0!important}
  body.cd-mobile-rebuild-1314 .lead-card-contacts{display:flex!important;flex-wrap:wrap!important;gap:5px 10px!important;font-size:.67rem!important}
  body.cd-mobile-rebuild-1314 .lead-card-actions{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;margin-top:8px!important}
  body.cd-mobile-rebuild-1314 .lead-card-actions>*{width:100%!important}
  body.cd-mobile-rebuild-1314 .lead-card-actions form button{width:100%!important}
  body.cd-mobile-rebuild-1314 .project-row{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px 10px!important;align-items:center!important;padding:10px!important;border-radius:16px!important;
  }
  body.cd-mobile-rebuild-1314 .project-row>div:first-child{min-width:0!important}
  body.cd-mobile-rebuild-1314 .project-row h3{font-size:.88rem!important;margin:2px 0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  body.cd-mobile-rebuild-1314 .project-row p{font-size:.66rem!important;margin:0!important}
  body.cd-mobile-rebuild-1314 .project-row>div:nth-child(2){grid-column:1/-1!important}
  body.cd-mobile-rebuild-1314 .project-row>a{grid-row:1!important;grid-column:2!important;min-height:36px!important;height:36px!important;padding:0 10px!important;font-size:.68rem!important}
  body.cd-mobile-rebuild-1314 .progress-label{font-size:.64rem!important;margin-bottom:4px!important}

  /* ---------- Messages ---------- */
  body.cd-mobile-rebuild-1314 .messages-head-v131{margin-bottom:9px!important}
  body.cd-mobile-rebuild-1314 .messages-head-actions-v131{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.cd-mobile-rebuild-1314 .messages-head-actions-v131>*{width:100%!important;min-width:0!important;margin:0!important}
  body.cd-mobile-rebuild-1314 .messages-head-actions-v131 form button,
  body.cd-mobile-rebuild-1314 .messages-head-actions-v131 a{width:100%!important;min-height:40px!important;height:40px!important;padding:0 8px!important;font-size:.69rem!important;justify-content:center!important}

  body.cd-mobile-rebuild-1314 .new-chat-card-v131{
    display:none!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:6100!important;width:100%!important;max-width:none!important;
    max-height:min(78dvh,620px)!important;margin:0!important;padding:15px 12px calc(16px + env(safe-area-inset-bottom,0px))!important;
    border-radius:23px 23px 0 0!important;background:linear-gradient(180deg,#151a28,#0b0f18)!important;border:1px solid rgba(255,255,255,.09)!important;border-bottom:0!important;
    box-shadow:0 -30px 70px rgba(0,0,0,.55)!important;overflow-y:auto!important;
  }
  body.cd-mobile-rebuild-1314 .new-chat-card-v131.cd14-sheet-open{display:block!important}
  body.cd-mobile-rebuild-1314 .mobile-sheet-head-v1314{display:flex!important;align-items:start!important;justify-content:space-between!important;gap:10px!important;margin-bottom:10px!important}
  body.cd-mobile-rebuild-1314 .mobile-sheet-close-v1314{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-height:36px!important;flex:0 0 36px!important;padding:0!important;border-radius:11px!important;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.08)!important;color:#fff!important;font-size:1.2rem!important}
  body.cd-mobile-rebuild-1314 .new-chat-copy-v131 h2{font-size:1.12rem!important;margin:0!important}
  body.cd-mobile-rebuild-1314 .new-chat-copy-v131 p{font-size:.7rem!important;margin:4px 0 0!important}
  body.cd-mobile-rebuild-1314 .new-chat-form-v131{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  body.cd-mobile-rebuild-1314 .new-chat-form-v131 label{display:grid!important;gap:4px!important}
  body.cd-mobile-rebuild-1314 .new-chat-form-v131 button{width:100%!important;margin-top:2px!important}
  .cd14-sheet-backdrop{display:none;position:fixed;inset:0;z-index:6000;background:rgba(0,0,0,.58);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
  .cd14-sheet-backdrop.is-open{display:block}
  body.cd14-sheet-lock{overflow:hidden!important}

  body.cd-mobile-rebuild-1314 .inbox-shell-v110{padding:9px!important}
  body.cd-mobile-rebuild-1314 .inbox-filter-v110{display:grid!important;gap:7px!important;padding:0 0 9px!important;margin:0 0 8px!important;border-bottom:1px solid rgba(255,255,255,.055)!important}
  body.cd-mobile-rebuild-1314 .filter-top-v110{display:grid!important;grid-template-columns:minmax(0,1fr) 112px!important;gap:7px!important}
  body.cd-mobile-rebuild-1314 .filter-top-v110 label{display:grid!important;gap:3px!important}
  body.cd-mobile-rebuild-1314 .filter-actions-v110{display:none!important;grid-template-columns:1fr!important;gap:6px!important;padding-top:2px!important}
  body.cd-mobile-rebuild-1314 .inbox-filter-v110.cd14-filters-open .filter-actions-v110{display:grid!important}
  body.cd-mobile-rebuild-1314 .mobile-filter-toggle-v1314{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:38px!important;height:38px!important;border-radius:10px!important;border:1px solid rgba(255,255,255,.07)!important;background:rgba(255,255,255,.03)!important;color:#aab0bf!important;font-size:.68rem!important}
  body.cd-mobile-rebuild-1314 .filter-actions-v110 .check{padding:6px 8px!important;border-radius:10px!important;background:rgba(255,255,255,.025)!important;font-size:.68rem!important}
  body.cd-mobile-rebuild-1314 .filter-actions-v110 .ghost-btn{width:100%!important}
  body.cd-mobile-rebuild-1314 .message-list-v110{display:grid!important;gap:7px!important}
  body.cd-mobile-rebuild-1314 .message-row-v110{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:10px!important;border-radius:15px!important}
  body.cd-mobile-rebuild-1314 .message-row-top-v110{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
  body.cd-mobile-rebuild-1314 .message-row-main-v110 h3{font-size:.9rem!important;margin:4px 0!important}
  body.cd-mobile-rebuild-1314 .message-row-meta-v110{display:flex!important;flex-wrap:wrap!important;gap:3px 9px!important;font-size:.64rem!important}
  body.cd-mobile-rebuild-1314 .message-row-actions-v110{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  body.cd-mobile-rebuild-1314 .message-row-actions-v110>*{width:100%!important;min-width:0!important;margin:0!important}
  body.cd-mobile-rebuild-1314 .message-row-actions-v110 form button,
  body.cd-mobile-rebuild-1314 .message-row-actions-v110>a,
  body.cd-mobile-rebuild-1314 .message-row-actions-v110>button{width:100%!important;min-width:0!important;min-height:38px!important;height:auto!important;padding:7px!important;font-size:.66rem!important;justify-content:center!important}

  /* ---------- Forms/settings/project editor ---------- */
  body.cd-mobile-rebuild-1314 .settings-grid,
  body.cd-mobile-rebuild-1314 .owner-settings-grid,
  body.cd-mobile-rebuild-1314 .integration-grid,
  body.cd-mobile-rebuild-1314 .owner-integration-grid,
  body.cd-mobile-rebuild-1314 .signature-settings-grid,
  body.cd-mobile-rebuild-1314 .form-grid,
  body.cd-mobile-rebuild-1314 .grid-2,
  body.cd-mobile-rebuild-1314 .grid-3,
  body.cd-mobile-rebuild-1314 .grid-4{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  body.cd-mobile-rebuild-1314 .raw-form,
  body.cd-mobile-rebuild-1314 .inline-settings,
  body.cd-mobile-rebuild-1314 .partner-row-form{max-width:100%!important;min-width:0!important}
  body.cd-mobile-rebuild-1314 .raw-form{display:grid!important;gap:9px!important}
  body.cd-mobile-rebuild-1314 .raw-form label{display:grid!important;gap:4px!important}
  body.cd-mobile-rebuild-1314 .file-row,
  body.cd-mobile-rebuild-1314 .contract-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;padding:8px 0!important}
  body.cd-mobile-rebuild-1314 .file-row>div,
  body.cd-mobile-rebuild-1314 .contract-row>div{min-width:0!important}
  body.cd-mobile-rebuild-1314 .file-row b,
  body.cd-mobile-rebuild-1314 .contract-row b{font-size:.76rem!important}
  body.cd-mobile-rebuild-1314 .file-row small,
  body.cd-mobile-rebuild-1314 .contract-row small{font-size:.63rem!important}
  body.cd-mobile-rebuild-1314 .file-row .ghost-btn,
  body.cd-mobile-rebuild-1314 .contract-row .ghost-btn{min-height:36px!important;height:36px!important;padding:0 9px!important;font-size:.65rem!important}
  body.cd-mobile-rebuild-1314 .owner-savebar,
  body.cd-mobile-rebuild-1314 .mobile-sticky-save,
  body.cd-mobile-rebuild-1314 .project-savebar-final{
    position:sticky!important;left:auto!important;right:auto!important;bottom:calc(70px + env(safe-area-inset-bottom,0px))!important;z-index:3000!important;
    width:100%!important;margin:10px 0 0!important;padding:7px!important;border-radius:14px!important;background:rgba(11,15,24,.94)!important;border:1px solid rgba(255,255,255,.08)!important;
    box-shadow:0 12px 30px rgba(0,0,0,.28)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;
  }
  body.cd-mobile-rebuild-1314 .owner-savebar>div{display:none!important}
  body.cd-mobile-rebuild-1314 .owner-savebar button,
  body.cd-mobile-rebuild-1314 .mobile-sticky-save button,
  body.cd-mobile-rebuild-1314 .project-savebar-final button{width:100%!important;min-height:42px!important}

  /* ---------- Bottom navigation ---------- */
  body.cd-mobile-rebuild-1314 .mobile-admin-bottom-nav{
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:center!important;
    position:fixed!important;left:10px!important;right:10px!important;bottom:calc(7px + env(safe-area-inset-bottom,0px))!important;z-index:5000!important;
    width:auto!important;min-height:58px!important;height:58px!important;padding:4px!important;border-radius:18px!important;
    background:rgba(11,15,24,.95)!important;border:1px solid rgba(255,255,255,.085)!important;box-shadow:0 14px 36px rgba(0,0,0,.42)!important;
    backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;
  }
  body.cd-mobile-rebuild-1314 .mobile-admin-bottom-nav>a,
  body.cd-mobile-rebuild-1314 .mobile-admin-bottom-nav>button{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;
    width:100%!important;min-width:0!important;height:50px!important;min-height:50px!important;padding:3px!important;border:0!important;border-radius:13px!important;
    background:transparent!important;color:#82899b!important;text-decoration:none!important;
  }
  body.cd-mobile-rebuild-1314 .mobile-admin-bottom-nav .mobile-tab-icon{width:22px!important;height:22px!important;display:grid!important;place-items:center!important}
  body.cd-mobile-rebuild-1314 .mobile-admin-bottom-nav .mobile-tab-icon svg{width:19px!important;height:19px!important}
  body.cd-mobile-rebuild-1314 .mobile-admin-bottom-nav small{font-size:.56rem!important;line-height:1!important;white-space:nowrap!important}
  body.cd-mobile-rebuild-1314 .mobile-admin-bottom-nav>a.is-active,
  body.cd-mobile-rebuild-1314 .mobile-admin-bottom-nav>button[aria-expanded="true"]{
    color:#e7deff!important;background:linear-gradient(180deg,rgba(132,92,244,.2),rgba(132,92,244,.08))!important;
  }
  body.cd-mobile-rebuild-1314 .mobile-admin-bottom-nav .mobile-tab-with-badge>b{top:1px!important;right:18%!important;min-width:15px!important;height:15px!important;font-size:.5rem!important}

  /* ---------- "More" drawer: clean vertical menu, no 2-column launchpad ---------- */
  body.cd-mobile-rebuild-1314 .workspace-nav.workspace-drawer{
    display:block!important;position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;z-index:5102!important;
    width:100%!important;max-width:none!important;height:min(76dvh,640px)!important;max-height:calc(100dvh - 16px)!important;margin:0!important;
    padding:0 10px calc(16px + env(safe-area-inset-bottom,0px))!important;border:0!important;border-top:1px solid rgba(255,255,255,.085)!important;border-radius:23px 23px 0 0!important;
    background:linear-gradient(180deg,#131824,#090d15)!important;box-shadow:0 -28px 70px rgba(0,0,0,.55)!important;overflow-y:auto!important;overflow-x:hidden!important;
    transform:translate3d(0,105%,0)!important;transition:transform .25s cubic-bezier(.2,.8,.2,1)!important;
  }
  body.cd-mobile-rebuild-1314 .workspace-nav.workspace-drawer.is-open{transform:translate3d(0,0,0)!important}
  body.cd-mobile-rebuild-1314 .workspace-brand-home{display:none!important}
  body.cd-mobile-rebuild-1314 .workspace-primary-nav{display:none!important}
  body.cd-mobile-rebuild-1314 .workspace-drawer-head{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;position:sticky!important;top:0!important;z-index:4!important;
    margin:0 -10px 6px!important;padding:16px 10px 8px!important;background:linear-gradient(180deg,#131824 82%,rgba(19,24,36,0))!important;
  }
  body.cd-mobile-rebuild-1314 .workspace-sheet-handle{display:block!important;position:absolute!important;top:6px!important;left:50%!important;width:38px!important;height:4px!important;transform:translateX(-50%)!important;border-radius:99px!important;background:rgba(255,255,255,.17)!important}
  body.cd-mobile-rebuild-1314 .workspace-drawer-user{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
  body.cd-mobile-rebuild-1314 .workspace-drawer-avatar{
    display:grid!important;place-items:center!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;flex:0 0 36px!important;
    padding:0!important;border-radius:11px!important;overflow:hidden!important;background:linear-gradient(135deg,rgba(132,92,244,.28),rgba(132,92,244,.07))!important;
  }
  body.cd-mobile-rebuild-1314 .workspace-drawer-avatar img{display:block!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;object-fit:cover!important;border-radius:11px!important}
  body.cd-mobile-rebuild-1314 .workspace-drawer-user-copy strong{font-size:.8rem!important}
  body.cd-mobile-rebuild-1314 .workspace-drawer-user-copy span{font-size:.63rem!important;color:#838b9e!important}
  body.cd-mobile-rebuild-1314 .workspace-drawer-close{width:36px!important;height:36px!important;min-height:36px!important;border-radius:11px!important;font-size:1.15rem!important}
  body.cd-mobile-rebuild-1314 .workspace-primary-action{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:100%!important;min-height:42px!important;height:42px!important;margin:4px 0 10px!important;border-radius:12px!important;font-size:.76rem!important}
  body.cd-mobile-rebuild-1314 .workspace-nav-section{
    display:grid!important;grid-template-columns:1fr!important;gap:2px!important;margin:0 0 6px!important;padding:0 0 6px!important;border-bottom:1px solid rgba(255,255,255,.05)!important;
  }
  body.cd-mobile-rebuild-1314 .workspace-nav-section>.nav-label{
    grid-column:auto!important;margin:6px 8px 3px!important;padding:0!important;color:#71798c!important;font-size:.57rem!important;letter-spacing:.12em!important;text-transform:uppercase!important;
  }
  body.cd-mobile-rebuild-1314 .workspace-nav.workspace-drawer a.workspace-menu-item,
  body.cd-mobile-rebuild-1314 .workspace-drawer-logout button{
    display:flex!important;align-items:center!important;gap:9px!important;width:100%!important;min-height:43px!important;height:auto!important;margin:0!important;padding:6px 8px!important;
    border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;color:#d7dbe5!important;text-align:left!important;font-size:.76rem!important;text-decoration:none!important;
  }
  body.cd-mobile-rebuild-1314 .workspace-nav.workspace-drawer a.workspace-menu-item.is-active{background:rgba(132,92,244,.1)!important;border-color:rgba(151,116,255,.11)!important;color:#e8e0ff!important}
  body.cd-mobile-rebuild-1314 .workspace-nav-icon{display:grid!important;place-items:center!important;width:30px!important;min-width:30px!important;height:30px!important;flex:0 0 30px!important;border-radius:9px!important;background:rgba(255,255,255,.035)!important}
  body.cd-mobile-rebuild-1314 .workspace-nav-icon svg{width:17px!important;height:17px!important}
  body.cd-mobile-rebuild-1314 .workspace-nav-text{font-size:.76rem!important;line-height:1.2!important;white-space:normal!important}
  body.cd-mobile-rebuild-1314 .workspace-drawer-logout{grid-column:auto!important;margin:0!important;width:100%!important}
  body.cd-mobile-rebuild-1314 .workspace-drawer-logout button{color:#ff8d9d!important;background:rgba(255,113,134,.035)!important}

  /* ---------- Tabs/chips ---------- */
  body.cd-mobile-rebuild-1314 .tabs,
  body.cd-mobile-rebuild-1314 .tab-list,
  body.cd-mobile-rebuild-1314 .filter-tabs,
  body.cd-mobile-rebuild-1314 .segmented-control{
    display:flex!important;gap:5px!important;width:calc(100% + 24px)!important;max-width:none!important;margin-left:-12px!important;padding:1px 12px 6px!important;overflow-x:auto!important;scrollbar-width:none!important;
  }
  body.cd-mobile-rebuild-1314 .tabs::-webkit-scrollbar,
  body.cd-mobile-rebuild-1314 .tab-list::-webkit-scrollbar,
  body.cd-mobile-rebuild-1314 .filter-tabs::-webkit-scrollbar{display:none!important}
  body.cd-mobile-rebuild-1314 .tabs>*,
  body.cd-mobile-rebuild-1314 .tab-list>*,
  body.cd-mobile-rebuild-1314 .filter-tabs>*{flex:0 0 auto!important;min-height:36px!important}

  /* Never widen the viewport. */
  body.cd-mobile-rebuild-1314 img,
  body.cd-mobile-rebuild-1314 svg,
  body.cd-mobile-rebuild-1314 video{max-width:100%!important}
  body.cd-mobile-rebuild-1314 .dashboard-main [style*="min-width"]{min-width:0!important}
  body.cd-mobile-rebuild-1314 pre,
  body.cd-mobile-rebuild-1314 code{max-width:100%!important;overflow-x:auto!important}
}

@media (max-width:430px){
  body.cd-mobile-rebuild-1314 .mobile-role-form-v1314{grid-template-columns:1fr!important}
  body.cd-mobile-rebuild-1314 .mobile-role-form-v1314 button{width:100%!important}
  body.cd-mobile-rebuild-1314 .message-row-actions-v110{grid-template-columns:1fr!important}
  body.cd-mobile-rebuild-1314 .filter-top-v110{grid-template-columns:1fr 102px!important}
}

@media (max-width:360px){
  :root{--cd14-pad:10px}
  body.cd-mobile-rebuild-1314 .staff-mobile-section{font-size:.82rem!important}
  body.cd-mobile-rebuild-1314 .mobile-user-fact-v1314{grid-template-columns:64px minmax(0,1fr)!important}
  body.cd-mobile-rebuild-1314 .visitor-summary-final{grid-template-columns:1fr 1fr 1fr!important}
  body.cd-mobile-rebuild-1314 .mobile-admin-bottom-nav small{font-size:.52rem!important}
}

/* Desktop: dedicated mobile markup must never appear. */
@media (min-width:901px){
  .mobile-users-list-v1314,.mobile-sheet-close-v1314,.mobile-filter-toggle-v1314{display:none!important}
}
