html.cn-mobile-mode{font-size:18px}
html.cn-mobile-mode body{background:#eef3f7;color:#10283f;padding-bottom:82px}
html.cn-mobile-mode #cnMobileWorkContext[hidden]{display:none!important}

/* One-line current-work bar. It is hidden until a job or prospect is selected. */
html.cn-mobile-mode .cn-simple-compact-context{display:grid;grid-template-columns:14px minmax(0,1fr) auto;align-items:center;gap:7px;width:100%;min-height:40px;margin:0 0 6px;padding:4px 7px;border:1px solid #6e879b;border-radius:9px;background:#fff;color:#10283f;text-align:left;box-shadow:0 1px 4px rgba(13,35,55,.08)}
html.cn-mobile-mode .cn-simple-compact-context[hidden]{display:none!important}
html.cn-mobile-mode .cn-simple-compact-context .cn-simple-pin{font-size:12px;color:#177344}
html.cn-mobile-mode .cn-simple-compact-context>div{display:grid;min-width:0;line-height:1.05}
html.cn-mobile-mode .cn-simple-compact-context small{font-size:8px;font-weight:950;letter-spacing:.08em;color:#637789}
html.cn-mobile-mode .cn-simple-compact-context strong{font-size:13px;color:#10283f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.cn-mobile-mode .cn-simple-compact-context .cn-simple-change-word{font-size:10px;font-weight:950;color:#164d78}

html.cn-mobile-mode .cn-simple-mobile-hub{display:block;margin:0;padding:0}
html.cn-mobile-mode .cn-simple-mobile-hub[hidden]{display:none!important}
html.cn-mobile-mode .cn-simple-panel{display:grid;gap:10px}
html.cn-mobile-mode .cn-simple-panel[hidden]{display:none!important}
html.cn-mobile-mode .cn-simple-panel h2{margin:2px 0 0;font-size:24px;color:#10283f}

/* Compact time status; the large controls remain easy to hit. */
html.cn-mobile-mode .cn-simple-clock-status{display:grid;gap:2px;min-height:48px;padding:8px 10px;border:2px solid #8294a4;border-radius:11px;background:#fff;text-align:center}
html.cn-mobile-mode .cn-simple-clock-status strong{font-size:18px;color:#563e16}
html.cn-mobile-mode .cn-simple-clock-status span{font-size:14px;font-weight:850;color:#10283f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.cn-mobile-mode .cn-simple-clock-status small{font-size:12px;color:#536a7e}
html.cn-mobile-mode .cn-simple-clock-status.active{border-color:#23834b;background:#effaf3}
html.cn-mobile-mode .cn-simple-clock-status.active strong{color:#17633a}
html.cn-mobile-mode .cn-simple-action[hidden]{display:none!important}
html.cn-mobile-mode .cn-simple-action{display:grid;grid-template-columns:46px 1fr;grid-template-rows:auto auto;align-items:center;column-gap:9px;width:100%;min-height:80px;padding:10px 12px;border:0;border-radius:13px;color:#fff;text-align:left;box-shadow:0 4px 12px rgba(8,31,53,.18)}
html.cn-mobile-mode .cn-simple-action>span{grid-row:1/3;font-size:34px;text-align:center}
html.cn-mobile-mode .cn-simple-action strong{font-size:25px;line-height:1}
html.cn-mobile-mode .cn-simple-action small{font-size:12px;color:rgba(255,255,255,.92)}
html.cn-mobile-mode .cn-simple-action.clock-in{background:#14723d}
html.cn-mobile-mode .cn-simple-action.clock-out{background:#b73333}
html.cn-mobile-mode .cn-simple-action:disabled{background:#8996a1;color:#eef2f5;opacity:.72;box-shadow:none}
html.cn-mobile-mode .cn-simple-action.busy{opacity:.88}
html.cn-mobile-mode .cn-simple-secondary{width:100%;min-height:50px;border:2px solid #1e5d8f;border-radius:10px;background:#fff;color:#174b77;font-size:16px;font-weight:950}

/* Job selection lives only on the Job tab. */
html.cn-mobile-mode .cn-simple-context-picker{margin:0;padding:13px;border:3px solid #d49a31;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(8,31,53,.13)}
html.cn-mobile-mode .cn-simple-context-picker[hidden]{display:none!important}
html.cn-mobile-mode .cn-simple-context-picker h2{margin:0 0 4px;font-size:23px;color:#10283f}
html.cn-mobile-mode .cn-simple-context-picker p{margin:0 0 11px;font-size:14px;line-height:1.3;color:#435a70}
html.cn-mobile-mode .cn-simple-context-picker label{display:block;margin-bottom:5px;font-size:12px;font-weight:950;color:#213d57}
html.cn-mobile-mode .cn-simple-context-picker select{width:100%;min-height:56px;padding:8px 10px;border:2px solid #496b88;border-radius:10px;background:#fff;color:#10283f;font-size:17px;font-weight:750}
html.cn-mobile-mode .cn-simple-primary{width:100%;min-height:58px;margin-top:10px;border:0;border-radius:10px;background:#176a3a;color:#fff;font-size:17px;font-weight:950}
html.cn-mobile-mode .cn-simple-selected-job{display:grid;gap:10px}
html.cn-mobile-mode .cn-simple-selected-job[hidden]{display:none!important}
html.cn-mobile-mode .cn-simple-selected-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 9px;border:2px solid #1e5d8f;border-radius:10px;background:#fff}
html.cn-mobile-mode .cn-simple-selected-head>div{display:grid;min-width:0}
html.cn-mobile-mode .cn-simple-selected-head small{font-size:9px;font-weight:950;color:#637789}
html.cn-mobile-mode .cn-simple-selected-head strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.cn-mobile-mode .cn-simple-selected-head button{min-height:38px;padding:0 10px;border:0;border-radius:8px;background:#164d78;color:#fff;font-size:11px;font-weight:950}
html.cn-mobile-mode .cn-simple-job-details{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:9px;border:1px solid #9eb1c1;border-radius:11px;background:#fff}
html.cn-mobile-mode .cn-simple-job-details>div{display:grid;gap:1px;padding:7px;border-radius:8px;background:#f1f5f8}
html.cn-mobile-mode .cn-simple-job-details .wide{grid-column:1/-1}
html.cn-mobile-mode .cn-simple-job-details small{font-size:9px;font-weight:950;color:#556a7d}
html.cn-mobile-mode .cn-simple-job-details strong{font-size:14px;color:#10283f;word-break:break-word}
html.cn-mobile-mode .cn-simple-empty{grid-column:1/-1;padding:14px;text-align:center;font-weight:850;color:#566b7e}

html.cn-mobile-mode .cn-simple-camera{display:grid;place-items:center;gap:6px;width:100%;min-height:240px;padding:20px;border:4px solid #d49a31;border-radius:18px;background:#0e3153;color:#fff;box-shadow:0 8px 24px rgba(8,31,53,.22)}
html.cn-mobile-mode .cn-simple-camera span{font-size:76px;line-height:1}
html.cn-mobile-mode .cn-simple-camera strong{font-size:31px;letter-spacing:.02em}
html.cn-mobile-mode .cn-simple-camera small{font-size:14px;color:#dbe7f0;text-align:center}
html.cn-mobile-mode .cn-simple-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
html.cn-mobile-mode .cn-simple-grid.one{grid-template-columns:1fr}
html.cn-mobile-mode .cn-simple-grid button{display:grid;place-items:center;gap:5px;min-height:100px;padding:10px;border:2px solid #315f85;border-radius:13px;background:#fff;color:#123b5d;box-shadow:0 3px 9px rgba(8,31,53,.09)}
html.cn-mobile-mode .cn-simple-grid.one button{grid-template-columns:46px 1fr;min-height:72px;text-align:left;justify-items:start}
html.cn-mobile-mode .cn-simple-grid button span{font-size:31px}
html.cn-mobile-mode .cn-simple-grid button strong{font-size:17px}

html.cn-mobile-mode #cnMobileBottomNav{grid-template-columns:repeat(4,1fr)!important;padding:4px 2px calc(4px + env(safe-area-inset-bottom))}
html.cn-mobile-mode #cnMobileBottomNav button{min-height:61px;font-size:10px;font-weight:950;color:#c5d2dc}
html.cn-mobile-mode #cnMobileBottomNav button .cn-mobile-icon{font-size:23px}
html.cn-mobile-mode #cnMobileBottomNav button.active{background:#d49a31;color:#071b31}
html.cn-mobile-mode #cnMobileCloudState{min-height:36px;padding:4px 6px;margin-bottom:5px}
html.cn-mobile-mode #cnMobileCloudState strong{font-size:11px}
html.cn-mobile-mode #cnMobileCloudState small{display:none}
html.cn-mobile-mode #cnMobileCloudState .btn{min-height:30px;padding:4px 8px;font-size:10px}
html.cn-mobile-mode #cnSimpleMobileHub~.view{display:none}
html.cn-mobile-mode .view.cn-simple-force-view{display:block!important}
html.cn-mobile-mode #timesheets #cnTimesheetClockCard .task-card-head{gap:10px}
html.cn-mobile-mode #timesheets #cnTimesheetClockCard .actions{display:grid;width:100%;gap:8px}
html.cn-mobile-mode #timesheets #cnTimesheetClockCard .btn{min-height:58px;font-size:18px;font-weight:900}
html.cn-mobile-mode body.cn-simple-hub-active .view{display:none!important}

@media(max-width:390px){
  html.cn-mobile-mode .content{padding-left:6px;padding-right:6px}
  html.cn-mobile-mode .cn-simple-compact-context{min-height:37px;margin-bottom:4px}
  html.cn-mobile-mode .cn-simple-compact-context small{display:none}
  html.cn-mobile-mode .cn-simple-action strong{font-size:23px}
  html.cn-mobile-mode .cn-simple-camera{min-height:215px}
  html.cn-mobile-mode .cn-simple-camera strong{font-size:28px}
  html.cn-mobile-mode .cn-simple-grid button strong{font-size:16px}
}

/* v0.9.8.6 mobile cleanup */
html.cn-mobile-mode body.cn-simple-hub-active .page-heading,
html.cn-mobile-mode body.cn-simple-hub-active #pageTitle,
html.cn-mobile-mode body.cn-simple-hub-active #navigatornotes,
html.cn-mobile-mode body.cn-simple-hub-active .notes-hero{display:none!important}
html.cn-mobile-mode .cn-simple-selected-head,
html.cn-mobile-mode .cn-simple-job-title{display:none!important}
html.cn-mobile-mode .cn-simple-details-toggle{margin:0;min-height:44px;font-size:14px}
html.cn-mobile-mode .cn-simple-job-details[hidden]{display:none!important}
html.cn-mobile-mode .cn-simple-job-details{grid-template-columns:1fr;margin:0;padding:7px;gap:5px}
html.cn-mobile-mode .cn-simple-job-details>div{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start;gap:8px;padding:6px 8px}
html.cn-mobile-mode .cn-simple-job-details small{font-size:9px;padding-top:2px}
html.cn-mobile-mode .cn-simple-job-details strong{font-size:13px;line-height:1.25}
html.cn-mobile-mode .cn-simple-job-actions{grid-template-columns:1fr}
html.cn-mobile-mode .cn-simple-job-actions button{grid-template-columns:48px minmax(0,1fr);min-height:74px;justify-items:start;text-align:left}
html.cn-mobile-mode .cn-simple-job-actions [data-simple-action="turnkey-package"]{border-color:#c98700;background:#fff7dc;color:#17324d}
html.cn-mobile-mode .cn-simple-job-actions [data-simple-action="turnkey-package"][hidden]{display:none!important}
html.cn-mobile-mode .cn-simple-receipt{display:grid;grid-template-columns:48px 1fr;grid-template-rows:auto auto;align-items:center;column-gap:10px;width:100%;min-height:92px;padding:12px 14px;border:3px solid #d49a31;border-radius:14px;background:#fff;color:#123b5d;text-align:left}
html.cn-mobile-mode .cn-simple-receipt>span{grid-row:1/3;font-size:38px;text-align:center}
html.cn-mobile-mode .cn-simple-receipt strong{font-size:24px;line-height:1}
html.cn-mobile-mode .cn-simple-receipt small{font-size:13px;color:#536a7e}
html.cn-mobile-mode .cn-simple-camera{min-height:190px}
html.cn-mobile-mode #messenger.cn-simple-force-view{display:block!important}
html.cn-mobile-mode #messenger .cn-msg-layout{display:block!important}
html.cn-mobile-mode #messenger .cn-msg-sidebar{display:block!important;max-height:230px;margin-bottom:8px}
html.cn-mobile-mode #messenger .cn-msg-main{padding-bottom:82px}
html.cn-mobile-mode #messenger .cn-msg-body{height:210px}
html.cn-mobile-mode #receiptModal[open]{display:block}


/* v0.9.8.6 mobile calendar + messenger */
html.cn-mobile-mode .cn-simple-comms{gap:8px}
html.cn-mobile-mode .cn-mobile-comms-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;position:sticky;top:0;z-index:3;padding:2px;background:#eef3f7}
html.cn-mobile-mode .cn-mobile-comms-tab{min-height:48px;border:2px solid #23577f;border-radius:10px;background:#fff;color:#163e61;font-size:15px;font-weight:950}
html.cn-mobile-mode .cn-mobile-comms-tab.active{background:#d49a31;color:#071b31;border-color:#d49a31}
html.cn-mobile-mode .cn-mobile-comms-pane[hidden]{display:none!important}
html.cn-mobile-mode .cn-mobile-pane-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #aab9c6;border-radius:11px;background:#fff}
html.cn-mobile-mode .cn-mobile-pane-head>div{display:grid;gap:1px}
html.cn-mobile-mode .cn-mobile-pane-head strong{font-size:20px;color:#10283f}
html.cn-mobile-mode .cn-mobile-pane-head small{font-size:12px;color:#526b80}
html.cn-mobile-mode .cn-mobile-pane-head button{min-height:38px;padding:0 10px;border:0;border-radius:8px;background:#174e78;color:#fff;font-size:11px;font-weight:950}
html.cn-mobile-mode .cn-mobile-agenda{display:grid;gap:7px;margin-top:7px;padding-bottom:76px}
html.cn-mobile-mode .cn-mobile-agenda h3{margin:8px 0 0;padding:0 4px;font-size:14px;color:#536a7e;text-transform:uppercase;letter-spacing:.05em}
html.cn-mobile-mode .cn-mobile-agenda-item{display:grid;grid-template-columns:72px minmax(0,1fr);gap:9px;align-items:center;width:100%;min-height:66px;padding:9px;border:1px solid #9eafbe;border-radius:11px;background:#fff;color:#10283f;text-align:left}
html.cn-mobile-mode .cn-mobile-agenda-time{display:grid;place-items:center;min-height:43px;padding:5px;border-radius:8px;background:#e8f1f8;color:#164d78;font-size:13px;font-weight:950;text-align:center}
html.cn-mobile-mode .cn-mobile-agenda-item>span:last-child{display:grid;gap:2px;min-width:0}
html.cn-mobile-mode .cn-mobile-agenda-item strong{font-size:16px;line-height:1.15}
html.cn-mobile-mode .cn-mobile-agenda-item small{font-size:12px;color:#526b80;white-space:normal}
html.cn-mobile-mode .cn-simple-empty-state{display:grid;gap:5px;padding:24px 14px;border:1px solid #aab9c6;border-radius:11px;background:#fff;text-align:center}
html.cn-mobile-mode .cn-simple-empty-state strong{font-size:18px;color:#10283f}
html.cn-mobile-mode .cn-simple-empty-state span{font-size:13px;color:#526b80}
html.cn-mobile-mode .cn-mobile-message-label{display:block;margin:2px 0 4px;font-size:11px;font-weight:950;color:#526b80}
html.cn-mobile-mode .cn-mobile-message-thread{width:100%;min-height:52px;padding:8px 10px;border:2px solid #315f85;border-radius:10px;background:#fff;color:#10283f;font-size:16px;font-weight:850}
html.cn-mobile-mode .cn-mobile-message-body{display:grid;align-content:start;gap:8px;height:calc(100dvh - 430px);min-height:220px;max-height:460px;margin-top:7px;padding:9px;border:1px solid #aab9c6;border-radius:11px;background:#fff;overflow-y:auto}
html.cn-mobile-mode .cn-mobile-message{max-width:88%;padding:9px 10px;border-radius:12px;background:#e8f1f8;color:#10283f}
html.cn-mobile-mode .cn-mobile-message.mine{justify-self:end;background:#174e78;color:#fff}
html.cn-mobile-mode .cn-mobile-message strong{display:block;font-size:12px}
html.cn-mobile-mode .cn-mobile-message p{margin:3px 0;font-size:15px;line-height:1.28}
html.cn-mobile-mode .cn-mobile-message small{font-size:10px;color:#526b80}
html.cn-mobile-mode .cn-mobile-message.mine small{color:#dce8f1}
html.cn-mobile-mode .cn-mobile-message-form{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:7px;position:sticky;bottom:68px;margin-top:7px;padding:7px;border:1px solid #aab9c6;border-radius:11px;background:#eef3f7;z-index:4}
html.cn-mobile-mode .cn-mobile-message-form textarea{min-height:58px;max-height:110px;padding:9px;border:2px solid #315f85;border-radius:9px;background:#fff;color:#10283f;font-size:16px;resize:vertical}
html.cn-mobile-mode .cn-mobile-message-form button{border:0;border-radius:9px;background:#14723d;color:#fff;font-size:15px;font-weight:950}
html.cn-mobile-mode body.cn-simple-hub-active #calendar,
html.cn-mobile-mode body.cn-simple-hub-active #messenger{display:none!important}
