#mobileNavigation,.mobile-editor-head,.pd-mobile-actions,.pd-mobile-tab,.mobile-result-open{display:none}
@media screen and (max-width:860px){
 body.mobile-workspace{background:#f3f7f7}
 .mobile-workspace .app{display:block}.mobile-workspace .app>.sidebar{display:none!important}
 .mobile-workspace .app .main{padding:10px 12px calc(90px + env(safe-area-inset-bottom));max-width:700px}
 .mobile-workspace .app .top.command-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;padding:10px 12px 0;margin-bottom:10px;border-radius:14px}
 .mobile-workspace .command-hospital{grid-column:1!important;min-width:0}.mobile-workspace .command-hospital #hospitalSelect{font-size:15px!important;max-width:100%!important;width:100%;min-height:40px}
 .mobile-workspace #commandDate,.mobile-workspace .command-status-label,.mobile-workspace #mobileTaskCenter{display:none!important}
 .mobile-workspace .command-account{grid-column:2;min-width:0;max-width:160px}.mobile-workspace .command-account summary{display:block;min-height:44px;padding:9px 10px;border-radius:9px;font-size:11px}
 .mobile-workspace #signedInUser{display:block;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.mobile-workspace .command-account-label{font-size:11px}
 .mobile-workspace .app .command-account #accountTools{position:absolute;right:0;width:min(320px,calc(100vw - 40px));max-width:calc(100vw - 40px);max-height:70vh;overflow:auto;z-index:80}
 .mobile-workspace #accountTools #adminNavigation{width:100%;border-top:1px solid #d6e2e4;color:var(--ink)}
 .mobile-workspace #accountTools .side-title{color:var(--muted);margin:12px 0}.mobile-workspace #accountTools .side-link{color:var(--ink);font-size:13px;padding:12px;min-height:44px}
 .mobile-workspace .command-statusbar{grid-column:1/-1;gap:6px;padding:7px 0;font-size:10px;align-items:start}.mobile-workspace #commandSave{flex:1;min-width:0;overflow-wrap:anywhere}.mobile-workspace #commandConnection{font-size:0}.mobile-workspace #commandConnection::before{content:'●';font-size:12px}
 .mobile-workspace .app #patientDetails{display:block;margin-bottom:8px}.mobile-workspace .mobile-patient-search{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:9px;padding:0 12px}
 .mobile-workspace summary{cursor:pointer}.mobile-workspace .mobile-patient-search>summary{padding:12px 0;font-size:14px;font-weight:700;color:var(--ui-dark,#126e70);min-height:44px}
 .mobile-workspace .app #patientDetails .patient-lookup{padding:0;border:0;background:none;margin:0 0 8px}.mobile-workspace .app #patientLookup{min-height:46px;font-size:16px!important}
 .mobile-workspace .app #patientDetails .sec-head{display:block;margin:0 0 10px}.mobile-workspace .app #patientDetails #newChart{max-width:none;width:100%;min-height:44px;background:var(--ui-soft,#edf7f5);color:var(--ui-dark,#126e70);border:1px solid var(--ui-border,#bed8d5)}
 .mobile-workspace .app .patient-summary{padding:13px 14px;min-height:0;border-radius:12px;margin:0}.mobile-workspace .app #patientSummaryName{font-size:20px;line-height:1.25}.mobile-workspace .app #patientSummaryMeta{font-size:12px;line-height:1.5;margin-top:5px}
 #mobilePatientDate{display:block;font-size:11px;font-weight:700;color:var(--ui-dark,#126e70);margin-top:6px}
 .mobile-workspace .mobile-patient-options,.mobile-workspace .mobile-chart-history{padding:0 10px;border-bottom:1px solid #dce7e7;margin-bottom:5px}.mobile-workspace .mobile-patient-options>summary,.mobile-workspace .mobile-chart-history>summary{padding:11px 0;font-size:12px;color:#426570;min-height:44px}
 .mobile-workspace .mobile-patient-options[open],.mobile-workspace .mobile-chart-history[open]{background:white;border:1px solid var(--line);border-radius:10px;padding-bottom:10px}
 .mobile-workspace .app .patient-details-editor{display:block;padding:0!important;margin-bottom:10px}.mobile-workspace .app .patient-details-editor>summary{margin:0;font-size:12px;min-height:44px}.mobile-workspace .app #patientStatus{margin:8px 0;font-size:12px;width:100%}
 .mobile-workspace .app #dailyChartsBar{border:0;padding:0;margin:0!important}.mobile-workspace #dailyChartsBar .toolbar>b{display:none}.mobile-workspace #dailyChartsBar #patientChartDates{min-width:0;font-size:16px}
 .mobile-workspace #mobileChartNotices:not(:empty){margin:7px 0}.mobile-workspace #mobileChartNotices>*:not([hidden]){padding:10px;border:1px solid #e2c181;border-radius:8px;background:#fff8e8;font-size:12px}
 .mobile-workspace #mobileNavigation{display:grid;position:fixed;bottom:0;left:0;right:0;grid-template-columns:repeat(5,minmax(0,1fr));background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid #cddede;padding:6px 7px calc(6px + env(safe-area-inset-bottom));z-index:48;box-shadow:0 -3px 18px #173f4510}
 #mobileNavigation button{border:0;background:none;border-radius:10px;color:#587079;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:51px;min-width:0;font:600 10px/1.25 system-ui;padding:5px 1px}#mobileNavigation button svg{width:22px;height:22px}#mobileNavigation button[aria-current=page]{background:var(--ui-soft,#e6f5f1);color:var(--ui-dark,#126e70)}#mobileNavigation button:disabled{opacity:.4}
 body.cloud-locked #mobileNavigation,body.mobile-editing #mobileNavigation,body:has(.pd-fullscreen) #mobileNavigation{display:none!important}
 .mobile-workspace .app #patientDashboard{margin-top:9px;border-radius:13px}.mobile-workspace .app #patientDashboard .pd-tabs{display:none}
 .mobile-workspace .app #patientDashboard .pd-tools{padding:14px 12px 10px;align-items:center;gap:10px}.mobile-workspace .app #patientDashboard .pd-tools h3{font-size:19px}.mobile-workspace .app #patientDashboard .pd-prepared{font-size:11px;margin-top:3px}
 .mobile-workspace .app #patientDashboard .pd-tools>.pd-actions>[data-pd-action=modify]{display:none}.mobile-workspace .app #patientDashboard .pd-tools>.pd-actions{width:100%;display:flex;gap:7px}
 .mobile-workspace .app #patientDashboard .pd-tools button{min-height:44px;font-size:13px;padding:10px 13px}.mobile-workspace .app #patientDashboard .pd-tools [data-pd-action=add-medicine]{flex:1;white-space:nowrap}.mobile-workspace .app #patientDashboard .pd-tools [data-pd-action=save-treatment]{flex:0 0 72px;min-width:72px}
 .mobile-workspace .pd-mobile-actions{display:contents}.mobile-workspace .pd-mobile-more{position:relative}.mobile-workspace .pd-mobile-more>summary{list-style:none;min-height:44px;min-width:44px;padding:10px;border:1px solid var(--line);border-radius:8px;font-size:17px;text-align:center}.mobile-workspace .pd-mobile-more>summary::-webkit-details-marker{display:none}
 .mobile-workspace .pd-mobile-more>div{position:absolute;right:0;top:48px;z-index:30;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 25px #14374625;padding:7px;min-width:190px;display:grid;gap:6px}
 .mobile-workspace .app #patientDashboard .pd-view{padding:0 9px 10px}.mobile-workspace .pd-workspace-footer{display:none}
 .mobile-workspace .app #patientDashboard .pd-treatment-table tr{border:1px solid #dbe7e6;border-radius:11px;padding:12px;margin:0 0 8px;gap:9px 8px;background:white}.mobile-workspace .app #patientDashboard .pd-treatment-table tr:nth-child(even){background:#f8fbfa}.mobile-workspace .app #patientDashboard .pd-treatment-table .pd-medication-cell>b{font-size:15px;line-height:1.35}.mobile-workspace .app #patientDashboard .pd-treatment-table .pd-actions-cell{top:5px;right:7px}.mobile-workspace .app #patientDashboard .pd-treatment-table td[data-label]{font-size:13px}
 .mobile-workspace .app #patientDashboard .pd-actions-cell button{min-width:44px;min-height:44px;padding:10px}
 .mobile-workspace .pd-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:8px 2px}.mobile-workspace .pd-report-grid button{min-height:95px;text-align:left;border:1px solid var(--ui-border,#d1e1df);border-radius:12px;background:var(--ui-soft,#f1f8f6);padding:14px;color:var(--ink,#173e45)}.pd-report-grid b,.pd-report-grid small{display:block}.pd-report-grid b{font-size:15px}.pd-report-grid small{font-size:12px;line-height:1.45;margin-top:7px;color:#597078}.mobile-workspace .pd-report-help{font-size:12px;line-height:1.5;padding:0 3px;color:#597078}
 .mobile-workspace .app #patientDashboard .pd-note-layout{grid-template-columns:1fr}.mobile-workspace .app #patientDashboard .pd-note-text{min-height:44vh;font-size:16px}.mobile-workspace .app #patientDashboard .pd-note-list{max-height:140px;overflow:auto}
 .mobile-workspace input:not([type=checkbox]):not([type=radio]),.mobile-workspace select,.mobile-workspace textarea{font-size:16px!important}.mobile-workspace button:focus-visible,.mobile-workspace summary:focus-visible{outline:3px solid #45a598;outline-offset:2px}
 .mobile-workspace #treatmentEditor{margin-top:10px;padding:8px 12px}.mobile-workspace #treatmentEditor[open]{position:fixed;inset:0;margin:0;border:0;border-radius:0;z-index:90;padding:0 12px calc(20px + env(safe-area-inset-bottom));overflow:auto;background:#f3f7f7}
 body.mobile-editing{overflow:hidden}.mobile-workspace #treatmentEditor[open]>summary{display:none}.mobile-workspace .mobile-editor-head{display:block;position:sticky;top:0;z-index:5;margin:0 -12px 10px;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;background:white;border-bottom:1px solid var(--line)}
 .mobile-editor-head>div{display:flex;gap:8px;justify-content:space-between}.mobile-editor-head button{min-height:44px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ui-dark,#126e70);padding:10px 12px;font:600 13px system-ui}.mobile-editor-head button.primary{color:white;background:var(--ui-accent,#126e70)}.mobile-editor-tabs{margin-top:9px;display:grid!important;grid-template-columns:1fr 1fr}.mobile-editor-tabs button{background:#f3f7f7;border-color:transparent}
 #treatmentEditor[data-mobile-pane=add] [data-mobile-edit=add],#treatmentEditor[data-mobile-pane=chart] [data-mobile-edit=chart]{background:var(--ui-soft,#e4f5ef);border-color:var(--ui-border,#a6d4c6);color:var(--ui-dark,#126e70)}#mobileEditorStatus{margin:7px 0 0;font-size:11px;line-height:1.4;color:#4a6870}#mobileEditorPatient{font-size:12px;font-weight:600;line-height:1.5;margin:8px 0 0;color:var(--ink);overflow-wrap:anywhere}
 .mobile-workspace #treatmentEditor .work{display:block;margin:0}.mobile-workspace #treatmentEditor .work>.card{padding:12px;border-radius:12px}.mobile-workspace #treatmentEditor[data-mobile-pane=add] #liveChart,.mobile-workspace #treatmentEditor[data-mobile-pane=chart] #addMedicines{display:none}
 .mobile-workspace #treatmentEditor #addMedicines>.sec-head h2{font-size:16px}.mobile-workspace #treatmentEditor .results{max-height:none;overflow:visible}.mobile-workspace #treatmentEditor .result{padding:10px;margin-bottom:7px;border:1px solid var(--line);border-radius:10px;background:white}.mobile-workspace .result-main{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center}.mobile-workspace .result-main strong{font-size:14px}.mobile-workspace .result-main small{grid-column:1;font-size:11px}.mobile-workspace .mobile-result-open{display:block;grid-column:2;grid-row:1/3;min-height:44px;border:1px solid var(--ui-border,#bdd5d1);border-radius:8px;padding:9px;font-size:12px;background:var(--ui-soft,#edf7f4);color:var(--ui-dark,#126e70)}
 .mobile-workspace .result:not([data-mobile-open=true]) .result-controls{display:none}.mobile-workspace .result[data-mobile-open=true]{border-color:var(--ui-accent,#126e70)}.mobile-workspace .result-controls{margin-top:12px}.mobile-workspace .result-entry-grid{grid-template-columns:1fr 1fr}.mobile-workspace .result-add-line .tiny-add{min-height:44px;padding:10px 22px;font-size:14px}.mobile-workspace .mobile-voice{margin-top:12px;padding:10px;border:1px solid var(--line);border-radius:10px}.mobile-workspace .mobile-voice>summary{min-height:44px;padding:10px 0;font-size:14px;font-weight:700}.mobile-workspace .mobile-voice .voice{margin:0;border:0;padding:0}.mobile-workspace .mobile-voice .voice .sec-head{display:none}
 .mobile-workspace #tcGlobalAlert{bottom:calc(77px + env(safe-area-inset-bottom))}.mobile-workspace.tc-has-critical .main{padding-bottom:calc(240px + env(safe-area-inset-bottom))}.mobile-workspace #hospitalNews{margin:8px 0}
 .mobile-workspace .cloudcard{padding:22px}.mobile-workspace .cloudcard input{font-size:16px!important}
}
@media print{#mobileNavigation,.mobile-editor-head,.pd-mobile-actions,.pd-mobile-tab,.mobile-result-open{display:none!important}}
/* Patient-first mobile home. These rules do not alter desktop or print layout. */
#mobileAccountAvatar,#mobileAccountName{display:none}
@media screen and (max-width:860px){
 .mobile-workspace .app .main{padding-top:12px}
 .mobile-workspace .app .top.command-bar{padding:0 0 10px;border:0;border-bottom:1px solid #d7e3e3;border-radius:0;background:transparent;gap:2px 10px;margin-bottom:16px}
 .mobile-workspace .app .command-hospital #hospitalSelect{font-size:15px!important;padding-right:20px;min-height:44px;background:transparent;letter-spacing:-.25px}
 .mobile-workspace .command-account{min-width:44px;max-width:44px}
 .mobile-workspace .command-account>summary{width:44px;min-height:44px;padding:0;display:grid;place-items:center;justify-content:center;text-align:center;border-radius:50%;border:1px solid #c5ded8;background:#e6f1ed}
 .mobile-workspace .command-account>summary #signedInUser,.mobile-workspace .command-account-label{display:none}
 .mobile-workspace #mobileAccountAvatar{display:block;font-size:13px;font-weight:750;color:#215f58}
 .mobile-workspace #mobileAccountName{display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere;border-bottom:1px solid var(--line);padding-bottom:10px}
 .mobile-workspace .app .command-statusbar{border:0;padding:0;gap:3px 8px;font-size:11px;align-items:center}
 .mobile-workspace .app #commandConnection{border:0;background:transparent;padding:0;min-height:0;line-height:1.5;font-size:0;border-radius:0}
 .mobile-workspace #commandConnection::before{content:'○ Sign in';font:500 11px/1.5 system-ui;color:#637780}
 .mobile-workspace #commandConnection[data-state=ready]::before{content:'● Connected';color:#326d60}
 .mobile-workspace #commandConnection[data-state=error]::before{content:'● Offline';color:#a34b2e}
 .mobile-workspace .app #commandSave{flex-basis:100%;font-size:11px;padding:0;line-height:1.5}
 .mobile-workspace.mobile-no-patient #commandSave[data-state=idle]{display:none}
 .mobile-workspace #commandRetry{min-height:44px}
 .mobile-workspace .app #patientDetails>.sec-head{display:none}
 .mobile-workspace .mobile-patient-search{border:0;background:transparent;padding:0;margin-bottom:12px}
 .mobile-workspace .mobile-patient-search>summary{border:1px solid var(--line);border-radius:10px;padding:12px;background:white;margin-bottom:10px}
 .mobile-workspace.mobile-patient-browse .mobile-patient-search>summary{display:none}
 .mobile-workspace .mobile-home-head{display:flex;align-items:flex-start;gap:8px;margin:2px 0 14px}
 .mobile-workspace .app #patientDetails .mobile-home-head .patient-lookup{flex:1;min-width:0;margin:0}
 .mobile-workspace .app #patientDetails .mobile-home-head #newChart{flex:0 0 auto;width:auto;max-width:none;background:var(--ui-accent,#087e79);color:#fff;font-size:12px;border:0;padding:10px 12px;border-radius:10px;min-height:50px;white-space:nowrap;box-shadow:0 3px 9px #106d6515}
 .mobile-workspace #mobileCurrentPatient{width:100%;text-align:left;margin:0 0 10px;padding:10px 12px;min-height:44px;border:1px solid #bcd8d2;border-radius:9px;background:#edf6f2;color:#245d55;font:600 12px/1.5 system-ui;overflow-wrap:anywhere}
 .mobile-workspace #mobileCurrentPatient[hidden]{display:none}
 .mobile-workspace .app #patientDetails .patient-lookup{margin-bottom:14px}
 .mobile-workspace .app #patientDetails #patientLookup{min-height:50px;padding:12px 14px 12px 42px!important;border:1px solid #c8dad9;border-radius:12px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23617e7b' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") no-repeat 13px center;box-shadow:0 2px 8px #244c4910}
 .mobile-workspace #patientLookup::placeholder{color:#718582;font-size:14px;opacity:1}
 .mobile-workspace .mobile-patient-search #patientCensus{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 8px}
 .mobile-workspace .mobile-patient-search #patientCensus[hidden]{display:none!important}
 .mobile-workspace #patientCensus button{padding:10px 8px;min-height:74px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;border-radius:11px;border-color:#d5e1e0;gap:5px;min-width:0;line-height:1.25}
 .mobile-workspace #patientCensus b{font-size:25px;line-height:1;margin:0;font-weight:750}
 .mobile-workspace #patientCensus .census-short-label{display:block;font-size:10px;font-weight:600}
 .mobile-workspace #patientCensus .census-full-label{display:none}
 .mobile-workspace #patientCensus .census-review{background:#fffbf3;color:#8a602a;border-color:#e8ddc9}
 .mobile-workspace #patientCensus .census-updated{grid-column:1/-1;text-align:right;font-size:10px;line-height:1.4;color:#72867f;min-height:14px}
 .mobile-workspace #hospitalNews{margin:8px 0 18px;border:1px solid #d5e3df;border-radius:11px;background:white}
 .mobile-workspace #hospitalNews>.news-head{display:none}
 .mobile-workspace #hospitalNews>.news-mobile-open{display:flex;width:100%;align-items:center;gap:9px;border:0;padding:11px;background:transparent;color:#264c46;min-height:60px;text-align:left}
 .mobile-workspace .news-mobile-icon{display:grid;place-items:center;flex:0 0 30px;height:32px;font-size:20px;background:#eaf4ef;border-radius:8px}
 .mobile-workspace .news-mobile-open strong,.mobile-workspace .news-mobile-open small{display:block}
 .mobile-workspace .news-mobile-open strong{font-size:12px}.mobile-workspace .news-mobile-open small{font-size:10px;color:#6b807b;margin-top:2px}
 .mobile-workspace .news-mobile-count{margin-left:auto;font-size:10px;font-weight:700;white-space:nowrap;color:#2c6d61;background:#edf6f2;border-radius:12px;padding:4px 7px}
 .mobile-workspace .mobile-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
 .mobile-workspace .mobile-list-head h3{margin:0;font-size:17px;letter-spacing:-.3px;color:#29444b}
 .mobile-workspace .mobile-list-head button{font:600 12px system-ui;color:var(--ui-dark,#126e70);background:transparent;border:0;padding:8px 0 8px 10px;min-height:44px}
 .mobile-workspace .mobile-patient-list{border:1px solid #d6e3df;border-radius:13px;overflow:hidden;background:white}
 .mobile-workspace .mobile-patient-row{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:0;border-bottom:1px solid #e8efec;min-height:76px;padding:12px;color:#25454a;font:inherit;cursor:pointer}
 .mobile-workspace .mobile-patient-row:last-child{border-bottom:0}.mobile-workspace .mobile-patient-row:active{background:#eff7f4}.mobile-workspace .mobile-patient-row:disabled{opacity:.6}
 .mobile-workspace .mobile-patient-bed{flex:0 0 64px;min-width:0;display:grid;gap:3px;padding:6px 4px;border-radius:7px;background:#f0f5f3;text-align:center;overflow-wrap:anywhere}
 .mobile-workspace .mobile-patient-bed small{font-size:9px;color:#617972;line-height:1.3}.mobile-workspace .mobile-patient-bed b{font-size:12px;line-height:1.3;font-weight:650}
 .mobile-workspace .mobile-patient-identity{flex:1;min-width:0}.mobile-workspace .mobile-patient-identity strong{display:block;font-size:14px;line-height:1.4;font-weight:650;overflow-wrap:anywhere}.mobile-workspace .mobile-patient-identity small{display:block;font-size:11px;color:#72827e;margin-top:4px;overflow-wrap:anywhere}
 .mobile-workspace .mobile-patient-arrow{color:#81948d;font-size:23px;font-weight:400}
 .mobile-workspace .mobile-list-foot{font-size:10px;color:#738780;margin:10px 2px}
 .mobile-workspace .mobile-list-status{font-size:12px;line-height:1.6;color:#5b746e;padding:14px;background:white;border:1px solid #d6e3df;border-radius:10px}
 .mobile-workspace .mobile-list-status button{min-height:44px;border:1px solid #c4d8d2;border-radius:7px;background:white;color:#286052;padding:8px 12px}
 .mobile-workspace.mobile-searching #mobileActivePatients{display:none}
 .mobile-workspace.mobile-no-patient #patientSummary{display:none}
 .mobile-workspace.mobile-patient-browse #patientSummary,.mobile-workspace.mobile-patient-browse .mobile-patient-options,.mobile-workspace.mobile-patient-browse .mobile-chart-history,.mobile-workspace.mobile-patient-browse #mobileChartNotices,.mobile-workspace.mobile-patient-browse #patientDashboard,.mobile-workspace.mobile-patient-browse #patientWorkflow,.mobile-workspace.mobile-patient-browse #labAlerts,.mobile-workspace.mobile-patient-browse #missingTodayChart,.mobile-workspace.mobile-patient-browse #treatmentEditor:not([open]){display:none}
}
