/* Phone-only task refinements; original fields, submitters and permissions remain intact. */
body.mobile-ui-active .mobile-system-shell .mtr-workspace .task-workspace-heading h2{display:none;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .task-workspace-header{margin-bottom:4px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .task-workspace-counts{font-size:12px;line-height:18px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace #taskDispatchToggle{flex:0 0 auto;width:auto;min-height:38px;padding:7px 12px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .task-board-filters{margin-bottom:8px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .task-board-filter{min-height:38px;padding:7px 1px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .task-list-filter-form{gap:4px 8px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .task-list-filter-form>[name=keyword],body.mobile-ui-active .mobile-system-shell .mtr-workspace .task-list-filter-form>button[type=submit]{min-height:38px;height:38px;padding:7px 10px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-filter-open{min-height:34px;padding:6px 0;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-attention{min-height:32px;margin:-34px 0 8px;padding:6px 10px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace.mtr-unfiltered .app-list-sort-summary{display:none;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .app-list-sort-summary{margin-bottom:7px;font-size:12px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .task-board-list{gap:7px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .task-board-list>.task-card{border-radius:9px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace button.mobile-workflow-task-row{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;min-height:0;padding:8px 10px;border-radius:9px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-task-row>.mobile-workflow-task-top{gap:8px;font-size:11px;line-height:16px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-task-type svg{display:none;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-task-status{padding:0;border-radius:0;background:transparent;font-size:11px;line-height:16px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-task-row .task-card-title{display:block;-webkit-line-clamp:unset;overflow:visible;margin:0;font-size:14px;line-height:20px;font-weight:600;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-task-row :is(.task-title-context,.task-card-meta){display:block;margin:0;padding:0;font-size:12px;line-height:17px;color:#66758b;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-task-row>.mobile-workflow-task-foot{margin-top:1px;padding:0;border:0;gap:8px;align-items:flex-end;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-task-time{display:flex;flex-wrap:wrap;align-items:baseline;gap:1px 5px;font-size:11px;line-height:16px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-task-time small{display:inline;margin:0;font-size:11px;line-height:16px;white-space:nowrap;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-task-time small+small{flex-basis:100%;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-task-action{min-height:18px;padding:0;border-radius:0;background:transparent;color:#175cc3;font-size:12px;line-height:18px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-task-action::after{content:'›';margin-left:4px;font-size:15px;line-height:16px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mtr-undated .mobile-workflow-task-time{display:none;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mtr-undated>.mobile-workflow-task-foot{justify-content:flex-end;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-filter-sheet{padding:14px;max-height:calc(100dvh - 48px);}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-filter-sheet header{margin-bottom:10px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-filter-body{gap:10px;}
body.mobile-ui-active .mtr-workspace .mtr-fold{margin:0;border:0;border-top:1px solid #e7edf5;border-radius:0;background:transparent;grid-column:1/-1;}
body.mobile-ui-active .mtr-workspace .mtr-fold>summary{padding:11px 0;font-size:12px;font-weight:500;line-height:18px;color:#536d8b;cursor:pointer;}
body.mobile-ui-active .mtr-workspace .mtr-fold:not([open])>:not(summary){display:none!important;}
body.mobile-ui-active .mtr-workspace .mtr-fold-body{padding:0 0 9px;display:grid;gap:8px;min-width:0;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-nav{margin:0;padding:0 0 6px;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-back{width:auto;padding:5px 7px;min-height:36px;border:0;background:transparent;font-size:12px;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-header{padding:8px 12px;border:0;border-radius:0;background:#fff;margin:0;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-heading h2{font-size:15px;line-height:22px;margin:4px 0 0;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-heading-meta{font-size:12px;line-height:18px;}
body.mobile-ui-active .mtr-workspace .mtr-detail-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;border-bottom:1px solid #dfe7f1;background:white;}
body.mobile-ui-active .mtr-workspace .mtr-detail-tabs>button{min-width:0;min-height:42px;margin:0;border:0;border-bottom:2px solid transparent;border-radius:0;padding:8px 2px;background:transparent;color:#66778f;font-size:12px;}
body.mobile-ui-active .mtr-workspace .mtr-detail-tabs>button[aria-selected=true]{color:#175cc3;border-bottom-color:#175cc3;font-weight:600;}
body.mobile-ui-active .mtr-workspace .mtr-detail-panel[hidden]{display:none!important;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-layout{display:block;min-height:0;max-height:none;overflow:visible;gap:0;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-main,body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-sidebar{padding:0;min-height:0;max-height:none;overflow:visible;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-section{margin:0 0 8px;padding:12px;border-radius:0;border:0;border-bottom:1px solid #e7edf5;box-shadow:none;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-compose{margin:0;padding:12px;border:0;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-compose>.task-history-title{display:none;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-followup-state{display:none;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-result-main>span{font-size:13px;font-weight:600;color:#243c59;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-result-main textarea{font-family:inherit;font-size:14px;line-height:22px;min-height:112px;font-weight:400;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-result-extra{border:0;border-top:1px solid #e7edf5;border-radius:0;background:transparent;margin:0;padding:0;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-result-extra>summary{padding:11px 0;font-size:12px;line-height:18px;font-weight:500;}
body.mobile-ui-active .mtr-workspace .mtr-detail .mtr-acceptance-fact{padding:12px;font-size:12px;line-height:20px;color:#63758b;border-bottom:1px solid #e7edf5;}
/* Keep the information tab concise without collapsing unique facts or its original controls. */
body.mobile-ui-active .mtr-workspace .mtr-info-compact>.mtr-acceptance-duplicate{display:none!important;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact>.mtr-acceptance-fact{padding:7px 12px;font-size:11px;line-height:18px;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact>.task-detail-section{margin:0;padding:8px 12px;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact .task-detail-section>h3{margin:0 0 6px;font-size:13px;line-height:20px;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact .task-detail-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:4px 12px;margin:0;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact .task-detail-basics>.task-detail-fields{grid-template-columns:repeat(2,minmax(0,1fr));}
body.mobile-ui-active .mtr-workspace .mtr-info-compact .task-detail-fields>div{display:grid;grid-template-columns:auto minmax(0,1fr);grid-column:1/-1;gap:6px;margin:0;align-items:baseline;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact .task-detail-fields>div.mtr-info-half{grid-column:auto;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact .task-detail-fields :is(dt,dd){min-width:0;margin:0;font-size:12px;line-height:19px;font-weight:400;overflow-wrap:anywhere;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact .task-detail-fields dt{color:#728198;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact .mtr-static-arrangement{display:grid;grid-template-columns:64px minmax(0,1fr);gap:2px 8px;margin:0;padding:0;border:0;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact .mtr-static-arrangement+.mtr-static-arrangement{margin-top:5px;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact .mtr-static-arrangement>.task-arrangement-label{margin:0;color:#728198;font-size:12px;line-height:19px;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact .mtr-static-arrangement>.task-arrangement-value{min-width:0;margin:0;font-size:12px;line-height:19px;overflow-wrap:anywhere;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact .mtr-static-arrangement>.task-arrangement-hint{grid-column:2;margin:0;font-size:11px;line-height:17px;color:#63758b;}
body.mobile-ui-active .mtr-workspace .mtr-info-compact .task-detail-source>:is(button,a){width:auto;max-width:100%;min-height:32px;margin:3px 6px 0 0;padding:5px 8px;font-size:12px;line-height:20px;}
body.mobile-ui-active .mtr-workspace .mtr-detail .mtr-record-empty{padding:18px 12px;font-size:13px;line-height:21px;color:#66778f;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-auxiliary{margin:0;border:0;border-bottom:1px solid #e7edf5;border-radius:0;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-auxiliary>summary{padding:12px;font-size:13px;}
body.mobile-ui-active.mtr-task-info .mtr-workspace .mtr-detail .task-detail-submit-actions{display:none!important;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-submit-actions [data-complete-task=true]{background:#175cc3;color:#fff;border-color:#175cc3;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-submit-actions .secondary{background:#edf3fe;color:#175cc3;border-color:#dce7f7;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .task-dispatch-section-heading{display:none;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .task-dispatch-section{padding:0;border:0;box-shadow:none;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .task-dispatch-section-grid{gap:0;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .execution-form-field{display:grid;grid-template-columns:minmax(82px,30%) minmax(0,1fr);gap:6px 10px;padding:8px 0;border-bottom:1px solid #e7edf5;align-items:center;min-width:0;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .execution-form-field>span,body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .execution-form-field>label{font-size:12px;line-height:18px;font-weight:500;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .execution-form-field>.task-dispatch-hint{grid-column:2;font-size:11px;line-height:17px;margin:0;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .execution-form-field input,body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .execution-form-field select,body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .execution-form-field textarea,body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .project-permission-toggle{font-family:inherit;font-size:13px;line-height:20px;font-weight:400;min-height:38px;width:100%;padding:6px;border:0;border-bottom:1px solid #edf2f7;border-radius:0;background:#fff;box-shadow:none;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .execution-form-field input:focus,body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .execution-form-field textarea:focus{outline:2px solid #86b4ff;outline-offset:0;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .execution-form-field-description{display:block;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .execution-form-field-description textarea{min-height:82px;margin-top:5px;border:1px solid #e0e8f2;border-radius:6px;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .task-dispatch-upload{padding:0;border:0;background:transparent;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .task-dispatch-upload-head>strong{display:none;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .task-dispatch-person .project-permission-picker{min-width:0;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .project-permission-option input[type=checkbox]{min-height:18px;width:18px;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .project-permission-option{display:flex;align-items:center;min-height:40px;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .task-mobile-steps{gap:0;border-bottom:1px solid #e0e7f0;margin-bottom:5px;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .task-mobile-steps>button{border:0;border-radius:0;background:transparent;min-height:40px;font-size:12px;border-bottom:2px solid transparent;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .task-mobile-steps>button.active{border-bottom-color:#175cc3;color:#175cc3;background:transparent;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .mobile-execution-menu{margin:0;border:0;border-bottom:1px solid #e7edf5;border-radius:0;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .mobile-execution-menu>summary{font-size:12px;padding:12px 0;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .task-dispatch-extra{border:0;border-bottom:1px solid #e7edf5;border-radius:0;padding:0;}
body.mobile-ui-active .mtr-workspace #taskForm.mtr-dispatch .task-dispatch-extra>summary{font-size:12px;padding:12px 0;}
body.mobile-ui-active .mtr-workspace .mtr-arrangement-form{gap:0;}
body.mobile-ui-active .mtr-workspace .mtr-arrangement-form>.task-schedule-field{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px;padding:7px 0;border-bottom:1px solid #e7edf5;align-items:center;}
body.mobile-ui-active .mtr-workspace .mtr-arrangement-form>.task-schedule-field>span{font-size:12px;line-height:18px;}
body.mobile-ui-active .mtr-workspace .mtr-arrangement-form :is(input,select,textarea,.project-permission-toggle){font-family:inherit;font-size:13px;line-height:20px;font-weight:400;min-height:38px;max-width:100%;min-width:0;padding:6px;border:0;border-bottom:1px solid #e7edf5;border-radius:0;background:white;}
body.mobile-ui-active .mtr-workspace .mtr-arrangement-form input[type=checkbox]{min-height:18px;width:18px;}
body.mobile-ui-active .mtr-workspace .mtr-arrangement-form .task-edit-description{display:block;}
body.mobile-ui-active .mtr-workspace .mtr-arrangement-form .task-edit-description textarea{min-height:70px;border:1px solid #e7edf5;border-radius:5px;}
body.mobile-ui-active .mtr-workspace .mtr-arrangement-form>button[type=submit]{margin-top:10px;width:auto;justify-self:end;min-height:40px;}

/* Shared phone task proportions; task-specific business fields remain in their original form. */
body.mobile-ui-active .mtr-workspace .mtr-detail>.task-card{border:0;border-radius:0;padding:0;}
body.mobile-ui-active .mtr-workspace .mtr-detail :is(.task-detail-nav,.task-detail-back){display:none!important;}
body.mobile-ui-active .mtr-workspace .mtr-record-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:4px;}
body.mobile-ui-active .mtr-workspace .mtr-record-head>.task-detail-heading-meta{flex:1;min-width:0;font-size:11px;line-height:17px;}
body.mobile-ui-active .mtr-workspace .mtr-record-head>.badge{flex:none;margin:0;font-size:11px;line-height:16px;font-weight:400;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-header{padding:10px 12px 8px;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-heading{display:block;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-heading>div{width:100%;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-heading h2{margin:0;font-size:15px;line-height:22px;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-title-context{margin:3px 0 0;font-size:12px;line-height:18px;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-section{margin:0;padding:10px 12px;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-section>h3{margin:0 0 6px;font-size:13px;line-height:20px;}
body.mobile-ui-active .mtr-workspace .task-device-contact-guidance{display:none;}
body.mobile-ui-active .mtr-workspace .device-task-context-head{display:block;}
body.mobile-ui-active .mtr-workspace .device-task-context-head h3{margin:0;font-size:13px;line-height:20px;}
body.mobile-ui-active .mtr-workspace .device-task-context-head p{margin:4px 0 7px;font-size:12px;line-height:18px;}
body.mobile-ui-active .mtr-workspace .device-task-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;}
body.mobile-ui-active .mtr-workspace .device-task-actions>button{width:auto;max-width:100%;min-width:0;min-height:36px;padding:6px 8px;margin:0;font-size:12px;line-height:20px;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-detail-compose{padding:10px 12px;}
body.mobile-ui-active .mtr-workspace .mtr-detail .task-result-form{display:flex;flex-direction:column;align-items:stretch;gap:8px;}
body.mobile-ui-active .mtr-workspace .mobile-task-editor{align-self:stretch;width:100%;box-sizing:border-box;min-width:0;overflow:hidden;border:1px solid #dce4ef;border-radius:9px;background:#fff;}
body.mobile-ui-active .mtr-workspace .mobile-task-editor .task-result-main{display:flex;flex-direction:column;gap:0;margin:0;width:100%;}
body.mobile-ui-active .mtr-workspace .mobile-task-editor .task-result-main>span{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0;padding:9px 10px 0;font-size:13px;line-height:20px;font-weight:600;}
body.mobile-ui-active .mtr-workspace .mobile-task-draft-label{font-size:11px;line-height:17px;font-weight:400;color:#66758b;}
body.mobile-ui-active .mtr-workspace .mobile-task-editor .task-result-main textarea{box-sizing:border-box;width:100%;height:112px;min-height:112px;margin:0;padding:8px 10px;border:0;border-radius:0;background:#fff;font-family:inherit;font-size:14px;line-height:22px;font-weight:400;resize:vertical;box-shadow:none;}
body.mobile-ui-active .mtr-workspace .mobile-task-record-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px;min-height:36px;border-top:1px solid #e7edf5;font-size:11px;line-height:17px;color:#66758b;}
body.mobile-ui-active .mtr-workspace .mobile-task-time-toggle{flex:none;width:auto;min-height:36px;margin:0;padding:4px 0;border:0;background:transparent;color:#175cc3;font-size:12px;}
body.mobile-ui-active .mtr-workspace .mobile-task-time-editor{padding:0 10px 9px;}
body.mobile-ui-active .mtr-workspace .mobile-task-time-editor[hidden]{display:none!important;}
body.mobile-ui-active .mtr-workspace .mobile-task-time-editor input{width:100%;box-sizing:border-box;min-height:38px;padding:6px;font-size:14px;}
body.mobile-ui-active .mtr-workspace .task-detail-submit-actions>button{min-height:44px!important;border-radius:8px;font-size:13px!important;line-height:20px;font-weight:500;}
/* Retain the native desktop picker; a selected follow-up draft stays discoverable after widening. */
.task-record-photos:not(.mobile-task-followup-photos),.task-record-photos .mobile-task-photo-select{display:contents;}
.task-record-photos .mobile-task-photo-select>span{display:none;}
.task-record-photos.mobile-task-followup-photos{display:none;}
.task-record-photos.mobile-task-followup-photos:has(.task-photo-preview img){display:block;}
body.mobile-ui-active .mtr-workspace .task-record-photos{display:block;align-self:stretch;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:8px 10px;border:1px solid #dce4ef;border-radius:9px;background:#fff;}
body.mobile-ui-active .mtr-workspace .task-record-photos .task-photo-picker{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin:0;}
body.mobile-ui-active .mtr-workspace .task-record-photos .mobile-task-photo-select{position:relative;display:inline-flex;align-items:center;width:auto;min-height:36px;margin:0;padding:6px 9px;box-sizing:border-box;border:1px solid #d5e2f6;border-radius:7px;background:#f3f7ff;color:#175cc3;font-size:12px;line-height:20px;overflow:hidden;cursor:pointer;}
body.mobile-ui-active .mtr-workspace .task-record-photos .mobile-task-photo-select>span{display:inline;}
body.mobile-ui-active .mtr-workspace .task-record-photos .mobile-task-photo-select>.task-photo-files{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;opacity:0;cursor:inherit;}
body.mobile-ui-active .mtr-workspace .task-record-photos .mobile-task-photo-select:focus-within{outline:2px solid #86b4ff;outline-offset:2px;}
body.mobile-ui-active .mtr-workspace .task-record-photos .task-photo-clear{width:auto;min-height:32px;margin:0;padding:4px 6px;border:0;background:transparent;color:#526c89;font-size:12px;line-height:20px;}
body.mobile-ui-active .mtr-workspace .task-record-photos .task-photo-state{margin:5px 0 0;font-size:11px;line-height:17px;color:#66758b;overflow-wrap:anywhere;}
body.mobile-ui-active .mtr-workspace .task-record-photos .task-photo-preview{margin:6px 0 0;min-width:0;}
body.mobile-ui-active .mtr-workspace .task-record-photos .task-photo-preview:empty{display:none;}
body.mobile-ui-active.mobile-workflow-fidelity .mobile-system-shell .topbar-product .mobile-app-menu{width:40px;border-radius:10px;background:#edf3fe;}
body.mobile-ui-active .mtr-workspace .device-followup-fields{gap:8px;}
body.mobile-ui-active .mtr-workspace .device-followup-fields>.task-schedule-field{gap:4px;margin:0;}
body.mobile-ui-active .mtr-workspace .device-followup-fields :is(input,select){box-sizing:border-box;min-height:38px;padding:6px 8px;font-size:14px;line-height:22px;}
body.mobile-ui-active .mtr-workspace .task-detail-view .mtr-info-compact>.task-detail-section{padding:8px 12px;}
/* Mode switches retain the original inputs and expose the desktop sections again. */
body:not(.mobile-ui-active) .mtr-workspace .mtr-detail-tabs,
body:not(.mobile-ui-active) .mtr-workspace .mtr-ordinary-editor,
body:not(.mobile-ui-active) .mtr-workspace .mobile-task-draft-label{display:none!important;}
body:not(.mobile-ui-active) .mtr-workspace .mtr-detail-panel[hidden]{display:block!important;}
body:not(.mobile-ui-active) .mtr-workspace .mtr-record-panel:has(.mtr-record-empty:only-child){display:none!important;}
body:not(.mobile-ui-active) .mtr-workspace .task-record-photos:has(.task-photo-preview img){grid-column:1/-1;height:auto;min-height:0;}

/* Original list controls remain live; only the redundant summary and jump are omitted. */
body.mobile-ui-active .mobile-system-shell .mtr-workspace .customer-fixed-pagination {display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:6px;margin:0;padding:8px 0;}
body.mobile-ui-active .mtr-workspace .customer-fixed-pagination>[data-page-summary],
body.mobile-ui-active .mtr-workspace .customer-fixed-pagination .list-page-jump,
body.mobile-ui-active .mtr-workspace .mobile-workflow-page-settings>summary {display:none!important;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace :is(.list-pagination-controls,.mobile-workflow-page-settings,.mobile-workflow-page-settings>div) {display:contents;}
body.mobile-ui-active .mtr-workspace .customer-fixed-pagination .list-page-size {display:flex;align-items:center;flex:none;order:-1;gap:3px;width:auto;margin:0;font-size:11px;}
body.mobile-ui-active .mtr-workspace .customer-fixed-pagination .list-page-size>span {display:none;}
body.mobile-ui-active .mtr-workspace .customer-fixed-pagination .list-page-size select {width:78px;min-width:0;height:32px;min-height:32px!important;margin:0;padding:4px;font-size:12px!important;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .list-page-turns {display:flex;flex:none;align-items:center;gap:6px;width:auto;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .list-page-turns>button {width:auto;min-width:0;min-height:32px;margin:0;padding:4px 7px;font-size:12px;line-height:20px;}
body.mobile-ui-active .mtr-workspace [data-page-current] {white-space:nowrap;font-size:12px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-task-row.mtr-undated {grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;}
body.mobile-ui-active .mtr-workspace .mobile-workflow-task-row.mtr-undated>:is(.mobile-workflow-task-top,.task-card-title,.task-title-context) {grid-column:1/-1;}
body.mobile-ui-active .mtr-workspace .mobile-workflow-task-row.mtr-undated>.task-card-meta {grid-column:1;min-width:0;align-self:end;}
body.mobile-ui-active .mtr-workspace .mobile-workflow-task-row.mtr-undated>.mobile-workflow-task-foot {grid-column:2;align-self:end;margin:0;}
body.mobile-ui-active .mtr-workspace .mobile-workflow-task-row.mtr-undated:not(:has(>.task-card-meta))>.mobile-workflow-task-foot {grid-column:1/-1;}
body.mobile-ui-active .mtr-workspace section.task-detail-arrangement:has(>h3):not(:has(>:not(h3))) {display:none;}

/* Keep the native dialog and original footer controls inside the visible keyboard viewport. */
body.mobile-ui-active.mobile-execution-task-editor .mtr-workspace :is(.task-detail-compose:not(.hidden) .task-detail-submit-actions,.task-mobile-step-actions) {bottom:var(--mtr-task-vv-bottom,0px)!important;}
body.mobile-ui-active.mobile-execution-task-editor #content:has(.mtr-workspace) {padding-bottom:calc(var(--mtr-task-vv-bottom,0px) + 96px)!important;}
html:has(body.mobile-ui-active.mobile-execution-task-editor .mtr-workspace) {scroll-padding-top:calc(var(--mtr-task-vv-top,0px) + 64px);scroll-padding-bottom:calc(var(--mtr-task-vv-bottom,0px) + 90px);}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-filter-sheet {position:fixed;inset:auto 8px;top:calc(var(--mtr-task-vv-top,0px) + 8px);width:auto;max-width:none;max-height:calc(var(--mtr-task-vv-height,100dvh) - 16px);margin:0;padding:0;border-radius:9px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-filter-sheet>header {display:flex;align-items:center;gap:8px;margin:0;padding:8px 10px;}
body.mobile-ui-active .mtr-workspace .mobile-workflow-filter-sheet>header h3 {flex:1;min-width:0;font-size:15px;line-height:22px;}
body.mobile-ui-active .mtr-workspace .mobile-workflow-filter-sheet>header>.mobile-workflow-filter-close {order:-1;min-width:0;min-height:34px;padding:5px 8px;font-size:12px;line-height:20px;}
body.mobile-ui-active .mobile-system-shell .mtr-workspace .mobile-workflow-filter-body {gap:8px;padding:10px;}
body.mobile-ui-active .mtr-workspace .mobile-workflow-filter-body>label {margin:0;gap:4px;font-size:12px;line-height:18px;}
body.mobile-ui-active .mtr-workspace .mobile-workflow-filter-body select {height:36px;min-height:36px!important;padding:6px 8px;font-size:14px!important;line-height:21px;}
body.mobile-ui-active .mtr-workspace .mobile-workflow-filter-sheet>footer {gap:8px;margin:0;padding:8px 10px;background:#fff;}
body.mobile-ui-active .mtr-workspace .mobile-workflow-filter-sheet>footer>button {min-height:40px;padding:6px;font-size:13px;line-height:20px;}

/* Original task read warning and retry stay inside the fixed receivable detail. */
body.mobile-ui-active .mtr-workspace .mobile-task-workflow-view .task-detail-feedback-slot>.task-inline-note[role="alert"] {max-height:110px;overflow:auto;margin:0 12px 8px;padding:8px;font-size:12px;line-height:18px;}
body.mobile-ui-active .mtr-workspace .mobile-task-workflow-view .task-detail-feedback-slot .task-reload-data {min-height:32px;margin:4px 0 0;padding:4px 8px;font-size:12px;line-height:20px;}

/* Only the four original task business-record windows share this compact phone layout. */
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) {position:fixed;inset:auto 0;top:var(--mtr-task-vv-top,0px);height:var(--mtr-task-vv-height,100dvh);box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;padding:8px;z-index:160;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-shell {position:relative;display:flex;flex-direction:column;width:100%;max-width:100%;max-height:100%;min-height:0;border-radius:9px;overflow:hidden;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-header {display:flex;flex:none;align-items:center;justify-content:flex-start;gap:8px;padding:7px 10px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-header>div {flex:1;min-width:0;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-header .cw-kicker {display:none;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-header h2 {margin:0;font-size:16px;line-height:24px;overflow-wrap:anywhere;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-header>[data-cw-action="close"] {order:-1;flex:none;width:auto;min-width:0;min-height:34px;margin:0;padding:5px 8px;font-size:12px;line-height:22px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-message {flex:none;margin:0;padding:0 10px;font-size:12px;line-height:18px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-message:not(:empty) {max-height:80px;overflow:auto;padding:6px 10px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-body {flex:1;min-height:0;min-width:0;padding:10px;overflow:auto;scroll-padding-top:8px;scroll-padding-bottom:64px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-body .mobile-return-row {margin:0 0 7px;padding:0;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-body .mobile-return-row button {min-height:30px;margin:0;padding:3px 0;font-size:12px;line-height:20px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-actions {gap:6px;margin:0 0 8px;padding:0;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-muted {font-size:12px;line-height:18px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-stage-help {margin:0 0 8px;padding:6px 0;font-size:12px;line-height:18px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-field {gap:4px;margin:0;font-size:12px;line-height:18px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-field>span {font-weight:500;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-field:has([name="projectId"],[name="title"],[name="customerName"],[name="address"]) {grid-column:1/-1;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-field :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea) {box-sizing:border-box;min-width:0;max-width:100%;min-height:36px;padding:6px 8px;font-size:14px;line-height:22px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-field textarea {min-height:76px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-wide {grid-column:1/-1;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-lines {margin:0;padding:8px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-line {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px 0;margin:0 0 6px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-footer {position:sticky;bottom:-10px;display:flex;gap:8px;margin:10px -10px -10px;padding:8px 10px;z-index:2;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-footer>button {flex:1;min-width:0;min-height:40px;margin:0;padding:6px 8px;font-size:13px;line-height:22px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-filters {grid-template-columns:minmax(0,1fr) minmax(84px,.6fr) auto;gap:6px;margin-bottom:8px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .cw-filters :is(input,select) {min-height:36px;padding:6px;font-size:13px;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .bank-leave {z-index:5;}
body.mobile-ui-active:has(#content .task-detail-view) .cw-modal:is([data-workflow-kind="engineering"],[data-workflow-kind="extinguishers"],[data-workflow-kind="serviceRecords"],[data-workflow-kind="reports"]) .bank-leave>div {max-width:calc(100% - 24px);max-height:calc(100% - 24px);overflow:auto;padding:14px;}

/* Stored task attachments use the original AttachmentFiles dialog, not the local-photo modal. */
body.mobile-ui-active:has(#content .task-detail-view:not(.hidden)) .af-modal {box-sizing:border-box;inset:auto 0;top:var(--mtr-task-vv-top,0px);height:var(--mtr-task-vv-height,100dvh);padding:8px;}
body.mobile-ui-active:has(#content .task-detail-view:not(.hidden)) .af-modal .af-dialog {min-height:0;max-height:100%;border-radius:9px;}
body.mobile-ui-active:has(#content .task-detail-view:not(.hidden)) .af-modal .af-header {flex:none;justify-content:flex-start;gap:8px;padding:8px 10px;}
body.mobile-ui-active:has(#content .task-detail-view:not(.hidden)) .af-modal .af-header h3 {flex:1;min-width:0;font-size:14px;line-height:20px;}
body.mobile-ui-active:has(#content .task-detail-view:not(.hidden)) .af-modal [data-af-close] {order:-1;flex:none;min-width:0;min-height:34px;margin:0;padding:5px 8px;font-size:12px;line-height:22px;}
body.mobile-ui-active:has(#content .task-detail-view:not(.hidden)) .af-modal .af-body {min-height:0;padding:10px;overflow:auto;}
body.mobile-ui-active:has(#content .task-detail-view:not(.hidden)) .af-modal .af-body img {max-height:calc(var(--mtr-task-vv-height,100dvh) - 126px);}
body.mobile-ui-active:has(#content .task-detail-view:not(.hidden)) .af-modal .af-footer {margin-top:8px;font-size:12px;line-height:20px;}
body.mobile-ui-active .mtr-workspace #taskPhotoModal:not(.hidden) {box-sizing:border-box;inset:auto 0;top:var(--mtr-task-vv-top,0px);height:var(--mtr-task-vv-height,100dvh);padding:8px;}
body.mobile-ui-active .mtr-workspace #taskPhotoModal .preview-modal-card {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;padding:10px;max-height:calc(var(--mtr-task-vv-height,100dvh) - 16px);border-radius:9px;}
body.mobile-ui-active .mtr-workspace #taskPhotoModalClose {position:static;grid-column:1;grid-row:1;min-width:0;min-height:34px;margin:0;padding:5px 8px;font-size:12px;line-height:22px;}
body.mobile-ui-active .mtr-workspace #taskPhotoModal h3 {grid-column:2;grid-row:1;min-width:0;min-height:0;margin:0;padding:0;font-size:14px;line-height:20px;overflow-wrap:anywhere;}
body.mobile-ui-active .mtr-workspace #taskPhotoModal img {grid-column:1/-1;max-height:calc(var(--mtr-task-vv-height,100dvh) - 104px);margin:0 auto;}


