/* Final phone overrides: task-focused screens, never scaled desktop columns. */
@media screen and (max-width:720px){
 .shell .main{padding:0 12px calc(88px + env(safe-area-inset-bottom));background:#f2f7fc}
 .shell .topbar{position:relative;display:flex;flex-wrap:wrap;gap:6px;padding:12px 2px;background:transparent;min-height:0}
 .shell .topbar .shell-heading{display:flex;width:100%;justify-content:flex-start;min-width:0;gap:8px}
 .shell .topbar .shell-heading strong{display:block;font-size:18px;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#075a98}
 .shell .topbar #toggle-main-nav,.shell .topbar .shell-patient-search,.shell .topbar .shell-tools #shell-new-patient,.shell .topbar .shell-tools #open-record-search{display:none}
 .shell .topbar .shell-tools{width:100%;justify-content:flex-end;gap:6px;font-size:12px;min-width:0}
 .shell .topbar #open-host-status{margin-right:auto;font-size:12px;min-height:36px;padding:5px 9px;background:#e0f2ff;color:#0667a5;border:0;border-radius:18px}
 .shell .topbar #logout{font-size:12px;min-height:36px;padding:5px 9px}
 .shell .mobile-bottom{position:fixed;bottom:0;left:0;right:0;display:flex;gap:0;border:0;border-top:1px solid #dbe8f4;border-radius:18px 18px 0 0;box-shadow:0 -4px 22px #075f9810;background:white;padding:4px 4px env(safe-area-inset-bottom);z-index:12}
 .shell .mobile-bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;font-size:12px;min-height:60px;border:0;border-radius:12px;color:#65788b;background:white}
 .shell .mobile-bottom button.active{background:#e3f5ff;color:#007dcb;font-weight:700}
 .shell .mobile-bottom .nav-icon{display:block;width:23px;height:23px;background:currentColor}
 .mobile-home{box-shadow:0 3px 14px #035d9810;border:1px solid #e0edf9;padding:14px}
 .mobile-feature-grid button{background:#e5f6ff;color:#056fb0;border:1px solid #c8e8fa;border-radius:12px;min-height:72px;font-size:15px}
 .mobile-patient-list{display:grid;gap:12px}.mobile-patient-card{border:1px solid #dbe9f5;border-radius:16px;box-shadow:0 2px 8px #07639108;padding:14px;background:#fff}
 .mobile-patient-main{padding-right:0}.mobile-patient-main strong{color:#11476c;font-size:18px}.mobile-patient-main span{color:#647789}
 .patient-workspace .patient-row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
 .patient-workspace .patient-row-actions>button,.patient-workspace .patient-row-more summary{width:100%;text-align:center;border-radius:10px;min-height:44px;padding:10px 6px;background:#f2f9ff;border-color:#d4eaf8;color:#046eac}
 .patient-workspace .patient-row-more>div button{text-align:left}
 .patient-workspace:not(.mobile-batch-mode) .mobile-patient-select,.patient-workspace:not(.mobile-batch-mode) .patient-batch-footer{display:none}
 .patient-workspace.mobile-batch-mode .mobile-patient-main{padding-right:32px}
 .patient-workspace .patient-searchbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.patient-workspace .patient-searchbar input{width:100%;box-sizing:border-box}.patient-workspace .patient-searchbar button{min-width:60px}
 .mobile-patient-filters{background:#f3f9ff;border:1px solid #dbeafa;border-radius:12px;margin:12px 0}.mobile-patient-filters>summary{padding:12px;color:#086ba8;min-height:44px;box-sizing:border-box;font-weight:600}
 .mobile-patient-filter-body{padding:0 12px 12px;display:flex;flex-wrap:wrap;gap:10px}.mobile-patient-filter-body>select{flex:1 1 130px;max-width:100%;min-width:0}.mobile-patient-filter-body>.patient-care-filters,.mobile-patient-filter-body>.patient-care-presets,.mobile-patient-filter-body>#patient-advanced-fields,.mobile-patient-filter-body>#patient-care-definition{width:100%;box-sizing:border-box;margin:0}
 .patient-result-toolbar{flex-wrap:wrap;gap:8px}.patient-result-toolbar>div{flex-wrap:wrap}.mobile-patient-batch-toggle{min-height:44px;font-size:13px}.patient-care-presets span{display:flex;flex-wrap:wrap;gap:6px}
 .mobile-record-card{border-color:#dbe9f5;border-radius:14px;padding:14px}.mobile-record-card .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobile-record-card .actions button{min-height:44px}
 dialog.mobile-billing-flow{height:100dvh!important;max-height:100dvh!important;width:100%!important;max-width:100%!important;padding:0!important;overflow:hidden!important}
 .mobile-billing-flow #modal-content{height:100%;display:flex;flex-direction:column;min-height:0}
 .mobile-billing-flow #modal-content>h2{display:flex;align-items:center;justify-content:space-between;flex:none;margin:0;padding:8px 14px;font-size:18px;background:#fff;border-bottom:1px solid #e3edf5}
 .mobile-bill-close{border:0;background:#f1f7fc;color:#48647b;min-width:60px;min-height:44px;border-radius:10px}
 dialog.mobile-billing-flow #modal-form{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}
 dialog.mobile-billing-flow #modal-form>.grid{flex:1;min-height:0;overflow:auto;display:block;padding:0 12px 12px;scroll-padding:14px;background:#f4f8fc}
 .mobile-billing-flow .billing-desk-context{margin:0 -12px;padding:12px;background:white;display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}
 .mobile-billing-flow .billing-desk-context>*{flex:1 1 145px;min-width:0!important;max-width:100%;box-sizing:border-box}
 .mobile-billing-flow .billing-desk-context input,.mobile-billing-flow .billing-desk-context select{width:100%;box-sizing:border-box;min-height:44px}
 .mobile-billing-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;position:sticky;top:0;z-index:7;background:#f4f8fc;padding:10px 0}
 .mobile-billing-steps button{padding:8px 2px;font-size:13px;line-height:1.4;min-height:46px;border:1px solid #d8e7f4;background:#fff;border-radius:10px;color:#52738c;white-space:normal}
 .mobile-billing-steps button.active{background:#008dd2;border-color:#008dd2;color:white;font-weight:700}
 .mobile-bill-hint{color:#597084;font-size:13px;line-height:1.6;margin:0 2px 10px}
 dialog.mobile-billing-flow .billing-composer{display:block!important;height:auto!important;min-height:0;border:0;background:transparent}
 dialog.mobile-billing-flow .billing-composer>.billing-picker-column,dialog.mobile-billing-flow .billing-composer>.billing-editor-column{overflow:visible!important;max-height:none!important;padding:0!important;border:0;background:transparent}
 .mobile-billing-flow .billing-directory-title{display:none}.mobile-billing-flow .billing-desk-search{margin:0 0 10px!important;padding:0!important;background:transparent!important}.mobile-billing-flow .billing-desk-search input{width:100%;min-height:48px;border-radius:12px}
 .mobile-billing-flow .billing-mode-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0!important}.mobile-billing-flow .billing-mode-tabs button{font-size:14px;min-height:44px;border-radius:10px!important}
 .mobile-billing-flow .billing-picker-filters,.mobile-billing-flow .billing-presets-fold{background:white;padding:8px 10px;border-radius:10px;margin:10px 0}
 .mobile-billing-flow .billing-catalog-toolbar{grid-template-columns:1fr auto;padding:8px 0}.mobile-billing-flow .billing-results{overflow:visible!important;max-height:none!important;min-height:0!important}
 .mobile-billing-flow .billing-result{background:white;border:1px solid #dfeaf5!important;border-radius:12px;margin:8px 0;padding:12px!important;align-items:center}.mobile-billing-flow .billing-result strong{font-size:15px!important}.mobile-billing-flow .billing-result small{font-size:12px!important}.mobile-billing-flow .billing-result button{min-height:44px!important;min-width:48px}
 .mobile-billing-flow[data-mobile-step=items] .billing-editor-column,.mobile-billing-flow:not([data-mobile-step=items]) .billing-picker-column{display:none!important}
 .mobile-billing-flow[data-mobile-step=review] [data-mobile-bill-section=settle],.mobile-billing-flow[data-mobile-step=settle] [data-mobile-bill-section=review]{display:none!important}
 .mobile-billing-flow .billing-table tr[data-charge-group]{display:block;grid-template-columns:none;background:#e3f3ff;color:#0669a0;padding:10px;border:0}
 .mobile-billing-flow .billing-table tr:not([data-charge-group]){padding:14px;background:#fff;border:1px solid #dfeaf5;border-radius:14px;gap:12px;margin:10px 0}
 .mobile-billing-flow .billing-table input{min-height:44px!important;width:100%;box-sizing:border-box}.mobile-billing-flow .billing-table td:nth-child(5)::before{content:'折扣（%）'}
 .mobile-billing-flow .billing-discount-tools{display:flex;flex-wrap:wrap;padding:12px;background:white;border-radius:12px;gap:8px}.mobile-billing-flow .billing-discount-tools strong{width:100%}.mobile-billing-flow .billing-discount-tools label{flex:1 1 100%!important;min-width:0;display:flex;justify-content:space-between;gap:10px}.mobile-billing-flow .billing-discount-tools input{max-width:60%;box-sizing:border-box;min-height:44px}
 .mobile-billing-flow .billing-payment{margin:0!important;border-radius:12px;background:white;padding:14px!important}.mobile-billing-flow .billing-quick-payment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobile-billing-flow .billing-quick-payment strong,.mobile-billing-flow .billing-quick-payment>span{grid-column:1/-1}.mobile-billing-flow .payment-entry-row{grid-template-columns:1fr!important}.mobile-billing-flow .billing-payment input,.mobile-billing-flow .billing-payment select{min-height:46px;max-width:100%;box-sizing:border-box}
 dialog.mobile-billing-flow #modal-form>.actions{flex:none;display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;margin:0;position:static;background:white;border-top:1px solid #d8e7f4;z-index:10}
 .mobile-billing-flow .billing-footer-total{flex-basis:100%!important;margin:0!important;font-size:19px;color:#057cb5}.mobile-billing-flow .billing-footer-payment{flex-basis:100%;font-size:12px}
 .mobile-billing-flow #modal-form>.actions>button{flex:1;min-width:0!important;min-height:48px!important;border-radius:12px;white-space:normal;font-size:14px}
 .mobile-billing-flow #cancel-modal,.mobile-billing-flow [data-invoice-prepare-payment]{display:none!important}
 .mobile-billing-flow:not([data-mobile-step=settle]) #modal-form>.actions>button:not([data-mobile-bill-back]):not([data-mobile-bill-next]),.mobile-billing-flow:not([data-mobile-step=settle]) .billing-footer-payment{display:none!important}
 .mobile-billing-flow #modal-form>.actions>button[hidden]{display:none!important}
 .mobile-billing-flow #form-error:not(:empty){flex:none;padding:8px 12px;color:#aa223c;background:#fff0f1}
 .mobile-billing-flow .smart-columns,.mobile-billing-flow .smart-plan-layout{grid-template-columns:1fr!important}
 .mobile-billing-flow [data-preset-selection] .tablewrap table,.mobile-billing-flow [data-combo-review] .tablewrap table{min-width:420px}
}
@media screen and (max-width:720px){
 .recent-patients:not(:has(button)){display:none}
 .mobile-data-cards{display:grid;gap:12px;margin:12px 0}.mobile-data-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;background:white;border:1px solid #dbe9f5;border-radius:14px;min-width:0}.mobile-data-card small{display:block;font-size:12px;color:#688197;margin-bottom:4px}.mobile-data-card .mobile-data-identity{grid-column:1/-1;font-size:16px;color:#115d92;font-weight:600}.mobile-data-card .mobile-data-field{font-size:14px;min-width:0;overflow-wrap:anywhere}.mobile-data-card .mobile-data-actions{grid-column:1/-1}.mobile-data-actions .actions,.mobile-data-actions .reception-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobile-data-actions button{min-height:44px;min-width:0;white-space:normal}.mobile-billing-record-search{width:100%;box-sizing:border-box;min-height:46px}.billing-workspace .pagehead>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.billing-workspace .pagehead>.actions button{min-width:0;white-space:normal}
}
@media screen and (max-width:720px){
 .appointment-workspace .schedule-scroll{max-height:65dvh;min-height:340px}
 .appointment-workspace .schedule-times{width:52px;position:sticky;left:0;background:#edf7ff;z-index:4;border-right:1px solid #c7dff2}
 .appointment-workspace .schedule-combined .schedule-grid{grid-template-columns:52px minmax(0,1fr)!important}
 .appointment-workspace .schedule-time{font-size:11px;color:#718ba1;line-height:var(--calendar-slot-height,22px);text-align:center}
 .appointment-workspace .schedule-time:nth-child(4n+1){font-size:14px;font-weight:700;color:#075e97;background:#e0f1ff;border-top:1px solid #bedbf0}
 .appointment-workspace .schedule-corner{position:sticky;left:0;z-index:6;color:#075e97;background:#e0f1ff}
 .appointment-workspace .calendar-business{font-size:13px;color:#276585}
}
@media screen and (max-width:720px){
 .mobile-billing-flow:not([data-mobile-step=items]) .billing-desk-context,.mobile-billing-flow[data-mobile-step=items] .mobile-bill-patient{display:none!important}
 .mobile-bill-patient{padding:12px 4px 2px;font-size:14px;color:#165d88;overflow-wrap:anywhere;line-height:1.6}
 .mobile-billing-flow .billing-lines-heading{justify-content:flex-start!important;min-height:36px;padding:0!important;border:0}
 .mobile-line-tools{padding:10px;background:white;border-radius:10px;margin:8px 0}.mobile-line-tools>summary{font-size:13px;color:#598198}.mobile-line-tools>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
}
@media print{.mobile-billing-steps,.mobile-bill-hint,.mobile-bill-close{display:none!important}}
/* Patient phone list: keep the shared controls and move them into a focused panel. */
@media screen and (max-width:720px){
 .shell:has(.patient-workspace.mobile-patient-simple) .topbar{display:none}
 .shell:has(.patient-workspace.mobile-patient-simple) .main{background:#fff}
 .patient-workspace.mobile-patient-simple>.pagehead{align-items:center;justify-content:space-between;margin:0;padding:12px 0 8px;min-height:52px}
 .patient-workspace.mobile-patient-simple>.pagehead h1{font-size:19px;font-weight:600}
 .patient-workspace.mobile-patient-simple>.pagehead button{min-height:44px;font-size:14px;border:0;background:transparent;color:#079fb2;padding:8px 0 8px 12px}
 .patient-workspace.mobile-patient-simple>.recent-patients{display:none}
 .patient-workspace.mobile-patient-simple .patient-list-card{padding:0;border:0;border-radius:0;box-shadow:none;background:#fff;min-width:0}
 .patient-workspace.mobile-patient-simple .patient-searchbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center;margin:0;padding:4px 0 12px;border-bottom:1px solid #f0f2f4}
 .patient-workspace.mobile-patient-simple .patient-searchbar>#patient-search{width:100%;min-width:0;min-height:40px;margin:0;padding:9px 12px;border:0;border-radius:22px;background:#f4f5f6;font-size:13px}
 .patient-workspace.mobile-patient-simple .patient-searchbar>#patient-query,.patient-workspace.mobile-patient-simple .mobile-patient-filters{display:none}
 .patient-workspace.mobile-patient-simple .mobile-patient-group-menu{position:relative;min-width:0;max-width:112px;align-self:stretch}
 .patient-workspace.mobile-patient-simple .mobile-patient-group-menu>summary{display:flex;align-items:center;justify-content:center;gap:3px;min-height:44px;padding:0 2px;list-style:none;color:#099eb1;font-size:13px;cursor:pointer;white-space:nowrap}
 .patient-workspace.mobile-patient-simple .mobile-patient-group-menu>summary::-webkit-details-marker{display:none}
 .patient-workspace.mobile-patient-simple .mobile-patient-group-menu>summary>span:first-child{overflow:hidden;text-overflow:ellipsis}
 .patient-workspace.mobile-patient-simple .mobile-patient-group-menu>.patient-groups{position:absolute;inset:calc(100% + 5px) 0 auto auto;z-index:20;display:flex;flex-direction:column;gap:3px;min-width:220px;max-width:calc(100vw - 24px);max-height:65dvh;overflow:auto;margin:0;padding:8px;border:1px solid #e8eef0;border-radius:10px;background:#fff;box-shadow:0 8px 25px #35484b24}
 .patient-workspace.mobile-patient-simple .mobile-patient-group-menu:not([open])>.patient-groups{display:none}
 .patient-workspace.mobile-patient-simple .mobile-patient-group-menu .patient-groups>button{display:flex;justify-content:space-between;width:100%!important;min-height:44px;padding:10px 12px;border:0;border-radius:6px;background:#f7f8f9;color:#586169;font-size:14px;text-align:left}
 .patient-workspace.mobile-patient-simple .mobile-patient-group-menu .patient-groups>button.active{background:#e5f6f8;color:#079cae}
 .patient-workspace.mobile-patient-simple .mobile-patient-group-menu .patient-group-heading,.patient-workspace.mobile-patient-simple .mobile-patient-group-menu .patient-groups>p{display:none}
 .patient-workspace.mobile-patient-simple .patient-searchbar>.mobile-patient-filter-trigger{min-width:44px;min-height:44px;padding:8px 2px;border:0;background:transparent;color:#5b656c;font-size:13px;white-space:nowrap}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-trigger.has-filters{color:#079fb2;font-weight:600}
 .patient-workspace.mobile-patient-simple #patient-filter-summary{display:none}
 .patient-workspace.mobile-patient-simple .patient-result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:8px 0;border:0;font-size:12px}
 .patient-workspace.mobile-patient-simple .patient-result-toolbar>strong{font-size:12px;font-weight:400;color:#8a9298}
 .patient-workspace.mobile-patient-simple .mobile-patient-batch-toggle{min-height:36px;padding:6px 8px;border:0;background:transparent;color:#7c868d;font-size:12px}
 .patient-workspace.mobile-patient-simple #patient-results>.empty{padding:60px 16px;color:#929ba2;text-align:center;line-height:1.8}
 .patient-workspace.mobile-patient-simple [data-mobile-patient-clear]{display:block;margin:18px auto 0;min-height:44px;padding:9px 18px;border:1px solid #bde4e8;border-radius:8px;background:#f0fbfc;color:#079bad;font-size:14px}
 .patient-workspace.mobile-patient-simple>dialog.mobile-patient-filter-panel{inset:0;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:0!important;border:0;border-radius:0;background:#fff;color:#3e474e;overflow:hidden!important;box-sizing:border-box}
 .patient-workspace.mobile-patient-simple>dialog.mobile-patient-filter-panel[open]{display:flex;flex-direction:column}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-panel::backdrop{background:#0004}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-panel>header{display:flex;align-items:center;justify-content:space-between;flex:none;padding:calc(8px + env(safe-area-inset-top)) 18px 8px;border-bottom:1px solid #f1f3f4;background:#fff}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-panel>header h2{margin:0;font-size:17px;font-weight:500}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-panel>header button{min-height:44px;padding:8px 0 8px 16px;border:0;background:transparent;color:#099fb1;font-size:15px}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-panel .mobile-patient-filter-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;padding:20px 18px 24px;min-width:0}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-field{display:flex;flex-direction:column;gap:8px;margin:0;font-size:14px;color:#4b555e}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-field>select{width:100%;max-width:100%;min-width:0;min-height:44px;box-sizing:border-box;background:#f6f7f8;border:1px solid #e9eef0;font-size:14px}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-body>#patient-advanced,.patient-workspace.mobile-patient-simple .mobile-patient-filter-body>.patient-care-filters,.patient-workspace.mobile-patient-simple .mobile-patient-filter-body>.patient-care-presets,.patient-workspace.mobile-patient-simple .mobile-patient-filter-body>#patient-care-definition,.patient-workspace.mobile-patient-simple .mobile-patient-filter-body>#patient-advanced-fields,.patient-workspace.mobile-patient-simple .mobile-patient-filter-body>.mobile-patient-list-options{grid-column:1/-1;width:100%;box-sizing:border-box;margin:0}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-body>#patient-advanced{min-height:44px;padding:10px 0;border:0;border-bottom:1px solid #eef1f3;border-radius:0;background:#fff;color:#099eb0;text-align:left;font-size:14px}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-body>.patient-care-filters{padding:0;border:0;background:#fff;gap:8px}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-body>.patient-care-filters>strong{width:100%;padding:4px 0;font-size:14px;font-weight:500;color:#4b555e}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-body .patient-care-filters button{min-height:44px;margin:0;padding:9px 12px;border:0;border-radius:5px;background:#f4f5f6;color:#7e878d;font-size:13px}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-body .patient-care-filters button.active{background:#e5f6f8;color:#079caf}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-body .patient-care-presets{padding:12px 0 0;border-top:1px solid #f0f2f3;gap:8px}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-body .patient-care-presets button{min-height:44px;font-size:13px}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-body #patient-advanced-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;border:0;background:#fff}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-body #patient-advanced-fields[hidden],.patient-workspace.mobile-patient-simple .mobile-patient-filter-body [hidden]{display:none!important}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-body #patient-advanced-fields label{min-width:0;font-size:13px;line-height:1.5}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-body #patient-advanced-fields input,.patient-workspace.mobile-patient-simple .mobile-patient-filter-body #patient-advanced-fields select{min-width:0;max-width:100%;min-height:44px;box-sizing:border-box;font-size:14px}
 .patient-workspace.mobile-patient-simple .mobile-patient-list-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:12px;border-top:1px solid #f0f2f3}
 .patient-workspace.mobile-patient-simple .mobile-patient-list-options label{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px}
 .patient-workspace.mobile-patient-simple .mobile-patient-list-options select{min-width:0;min-height:44px;flex:1;font-size:14px}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-panel>footer{display:grid;grid-template-columns:1fr 1fr;flex:none;gap:0;padding:0 0 env(safe-area-inset-bottom);border-top:1px solid #edf1f3;background:#fff}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-panel>footer button{min-width:0;min-height:54px;margin:0;padding:12px;border:0;border-radius:0;background:#fff;color:#079fb2;font-size:16px}
 .patient-workspace.mobile-patient-simple .mobile-patient-filter-panel>footer [data-mobile-patient-apply]{background:#0bb4c5;color:#fff}
 .patient-workspace.mobile-patient-simple .mobile-patient-group-menu>summary:focus-visible,.patient-workspace.mobile-patient-simple button:focus-visible{outline:2px solid #0aa4b6;outline-offset:2px}
 body:has(.patient-workspace.mobile-patient-simple>dialog.mobile-patient-filter-panel[open]){overflow:hidden}
 .patient-workspace.mobile-patient-simple .mobile-patient-list{display:block}
 .patient-workspace.mobile-patient-simple .mobile-patient-card-compact{padding:12px 2px 4px;margin:0;border:0;border-bottom:1px solid #ebeff1;border-radius:0;box-shadow:none;background:#fff}
 .patient-workspace.mobile-patient-simple .mobile-patient-card-compact .mobile-patient-main{display:block;min-height:0;padding:0;text-align:left;border:0;background:#fff}
 .patient-workspace.mobile-patient-simple .mobile-patient-card-compact .mobile-patient-main>strong{display:block;margin:0 0 4px;font-size:16px;font-weight:600;line-height:1.5;color:#374851;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .patient-workspace.mobile-patient-simple .mobile-patient-card-compact .mobile-patient-main>strong small{font-size:11px;font-weight:400;color:#899299}
 .patient-workspace.mobile-patient-simple .mobile-patient-compact-meta{display:flex;flex-wrap:wrap;column-gap:12px;row-gap:0}
 .patient-workspace.mobile-patient-simple .mobile-patient-compact-meta>span{display:block;font-size:11px;line-height:1.6;color:#8b949a;overflow-wrap:anywhere}
 .patient-workspace.mobile-patient-simple .mobile-patient-card-compact .patient-row-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 0}
 .patient-workspace.mobile-patient-simple .mobile-patient-card-compact .patient-row-actions[data-mobile-action-count="1"]{grid-template-columns:1fr}
 .patient-workspace.mobile-patient-simple .mobile-patient-card-compact .patient-row-actions[data-mobile-action-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
 .patient-workspace.mobile-patient-simple .mobile-patient-card-compact .patient-row-actions>button{display:block;width:100%;min-height:44px;padding:8px 4px;border:1px solid #e4eef0;border-radius:7px;background:#f7fbfc;color:#1594a5;font-size:13px;line-height:1.5;white-space:nowrap}
 .patient-workspace.mobile-patient-simple .mobile-patient-card-compact>.mobile-patient-inline-more{position:static;display:block;margin:0}
 .patient-workspace.mobile-patient-simple .mobile-patient-inline-more>summary{display:flex;align-items:center;justify-content:flex-end;gap:10px;width:100%;min-height:40px;box-sizing:border-box;padding:8px 2px;border:0;border-radius:0;background:transparent;color:#7e898f;font-size:12px;line-height:1.5;list-style:none;cursor:pointer}
 .patient-workspace.mobile-patient-simple .mobile-patient-inline-more>summary::after{content:'⌄';font-size:16px;color:#9ca5aa}
 .patient-workspace.mobile-patient-simple .mobile-patient-inline-more[open]>summary::after{transform:rotate(180deg)}
 .patient-workspace.mobile-patient-simple .mobile-patient-inline-more .mobile-patient-safety-hint{margin-right:auto;color:#9a7b52;font-size:11px}
 .patient-workspace.mobile-patient-simple .mobile-patient-inline-more>div{position:static!important;inset:auto!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0;max-width:100%;padding:10px;margin:0 0 8px;border:1px solid #e7eef0;border-radius:7px;box-shadow:none;background:#f8fbfc}
 .patient-workspace.mobile-patient-simple .mobile-patient-inline-more:not([open])>div{display:none}
 .patient-workspace.mobile-patient-simple .mobile-patient-inline-more>div>button{min-width:0;min-height:44px;padding:9px 8px;border:1px solid #e1ebee;border-radius:6px;background:#fff;color:#288596;text-align:center;font-size:13px;white-space:normal}
 .patient-workspace.mobile-patient-simple .mobile-patient-contact-details{grid-column:1/-1;display:grid;gap:5px;padding:0 0 8px;font-size:12px;line-height:1.7;color:#6c7a82;overflow-wrap:anywhere}
 .patient-workspace.mobile-patient-simple .mobile-patient-allergy-details{display:flex;gap:8px;align-items:baseline;color:#987343}
 .patient-workspace.mobile-patient-simple .mobile-patient-allergy-details>strong{flex:none;font-size:12px;font-weight:500}
 .patient-workspace.mobile-patient-simple .mobile-patient-contact-details .patient-care-summary{margin:0;padding:4px 0 0;font-size:12px;line-height:1.7}
 .patient-workspace.mobile-patient-simple.mobile-batch-mode .mobile-patient-card-compact .mobile-patient-main{padding-right:30px}
 .patient-workspace.mobile-patient-simple .mobile-patient-card-compact .mobile-patient-select{right:4px;top:14px}
}
