/* Phone home and account screens. Keep the desktop workbench and calendar geometry intact. */
.mobile-home-reference{display:none}
@media screen and (max-width:720px){
 :root{--mobile-home-teal:#12b6c7;--mobile-home-ink:#33383d;--mobile-home-muted:#8b9096;--teal:#0bb4c5}
 .shell:has(.mobile-home-reference) .topbar,.shell:has(.mobile-home-reference) .reception-workbench>.pagehead,.shell:has(.mobile-home-reference) #view>.pagehead,.shell:has(.mobile-home-reference) #workbench-panel{display:none!important}
 .shell:has(.mobile-home-reference) .main{padding:0 0 calc(76px + env(safe-area-inset-bottom));background:#fff}
 .shell:has(.mobile-home-reference) #view{background:#fff;min-height:calc(100dvh - 72px)}
 .mobile-home-reference{display:block;width:100%;margin:0;background:#fff;color:var(--mobile-home-ink);font-size:14px}
 .mobile-home-reference button{font:inherit;box-shadow:none;-webkit-tap-highlight-color:transparent}
 .mobile-home-reference button:focus-visible,.mobile-me-dialog button:focus-visible{outline:2px solid #12b6c7;outline-offset:3px}
 .mobile-home-header{display:flex;align-items:center;gap:2px;min-height:54px;padding:calc(3px + env(safe-area-inset-top)) 10px 6px 16px;background:#fff}
 .mobile-home-header button{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border:0;border-radius:8px;background:#fff;color:#4e565e}
 .mobile-home-header button.mobile-clinic-name{display:flex;justify-content:flex-start;gap:7px;flex:1;min-width:0;text-align:left;font-size:17px;font-weight:600;padding:8px 0;color:#33383d;letter-spacing:.1px}
 .mobile-clinic-name>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mobile-clinic-name>strong{display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
 .mobile-clinic-name>.mobile-clinic-symbol{display:flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;min-width:22px;background:#12b6c7;border-radius:5px;color:#fff;font-size:13px;font-weight:600;line-height:1}
 .mobile-home-header button.mobile-clinic-name svg{width:13px;height:13px;flex:none;color:#a1a5aa}
 .mobile-home-header button>svg{display:block;width:24px;height:24px;flex:none;stroke-width:1.7}
 .mobile-home-header button:last-child>svg{width:26px;height:26px}
 .mobile-home-banner{display:flex;flex-direction:column;justify-content:center;gap:8px;position:relative;min-height:66px;margin:0 15px 12px;padding:12px 76px 12px 16px;border:0;border-radius:9px;overflow:hidden;background:linear-gradient(112deg,#12c1c9 0%,#0bb6dc 55%,#2499ee 100%);color:#fff}
  .mobile-home-banner::after{display:none;content:'';position:absolute;width:105px;height:105px;right:-20px;top:-13px;border:20px solid #ffffff64;border-radius:50%;pointer-events:none}
 .mobile-home-banner strong{position:relative;z-index:1;font-size:17px;font-weight:600;line-height:1.4;letter-spacing:.2px;color:#fff}
 .mobile-home-banner span{position:relative;z-index:1;max-width:100%;font-size:12px;color:#f0fdff;line-height:1.5}
 .mobile-home-banner .mobile-banner-mark{position:absolute;right:21px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:64px;height:64px;max-width:64px;pointer-events:none;color:#ffffffdc}
 .mobile-banner-mark>svg{display:block;width:40px;height:40px;stroke-width:1.5;color:inherit}
 .mobile-home-section{padding:0 15px 10px;margin:0;border:0;background:#fff}
 .mobile-home-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;margin:0 0 2px}
 .mobile-home-section-head h2{font-size:16px;font-weight:600;line-height:1.4;margin:0;color:#33383d;letter-spacing:.2px}
 .mobile-home-section-head button{min-height:44px;min-width:44px;padding:8px 0 8px 10px;border:0;border-radius:0;background:transparent;color:#9a9fa6;font-size:12px}
 .mobile-home-grid,.mobile-menu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:3px;row-gap:8px;width:100%;min-width:0}
 .mobile-home-grid[data-columns="3"],.mobile-home-grid.mobile-home-common-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .mobile-home-reference button.mobile-feature-tile,.mobile-me-dialog button.mobile-feature-tile,dialog .mobile-menu-grid button.mobile-feature-tile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;min-width:0;min-height:73px;padding:5px 2px 6px;border:0;border-radius:0;background:transparent;color:#454a50;text-align:center;font-size:12px;font-weight:400;line-height:1.35;box-shadow:none}
 .mobile-home-reference button.mobile-feature-tile:active,.mobile-me-dialog button.mobile-feature-tile:active,dialog .mobile-menu-grid button.mobile-feature-tile:active{background:#f3fbfc}
 .mobile-feature-icon{display:flex;align-items:center;justify-content:center;position:relative;width:42px;height:42px;flex:none;border-radius:10px;overflow:hidden;background:#13b9c9;color:#fff}
 .mobile-feature-icon.tile-teal{background:#08bac9;box-shadow:none}
 .mobile-feature-icon.tile-yellow{background:#ffc832}
 .mobile-feature-icon.tile-blue{background:#299fe9}
 .mobile-feature-icon.tile-mint{background:#32bd9d}
 .mobile-feature-icon>svg{display:block;width:26px;height:26px;flex:none;color:#fff;stroke-width:1.8}
 .mobile-feature-label{display:block;max-width:100%;min-width:0;overflow-wrap:anywhere;line-height:1.45;color:#454a50}
 .mobile-home-notice{display:flex;align-items:center;gap:8px;margin:0 15px 8px;padding:3px 10px;min-height:30px;border:0;border-radius:5px;background:#eefbfd;color:#278ca0;font-size:12px;line-height:1.55}
 .mobile-home-notice>svg{width:17px;height:17px;flex:none;color:#a4aab1}
 .mobile-home-notice button{border:0;padding:0;min-height:32px;background:transparent;color:#8b9299;font-size:12px;text-align:left}
 #mobile-home-stats{padding-top:3px;padding-bottom:7px;border-top:1px solid #f1f4f5;border-bottom:1px solid #f1f4f5}
 #mobile-home-stats .mobile-home-section-head{padding-top:0;margin-bottom:2px}
 .mobile-home-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px 1px}
 .mobile-home-reference .mobile-home-stat-grid>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:61px;padding:7px 2px;border:0;border-radius:0;background:#fafbfc;box-shadow:none;text-align:center;color:#555d65}
 .mobile-home-stat-grid>button>strong{display:block;max-width:100%;font-size:20px;font-weight:500;line-height:1.15;font-variant-numeric:tabular-nums;color:#353b41;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mobile-home-stat-grid>button>strong.mobile-money-value{font-size:14px}
 .mobile-home-stat-grid>button>span{display:block;max-width:100%;font-size:11px;line-height:1.4;color:#717880;overflow-wrap:anywhere}
 .mobile-home-stat-grid>button:active{background:#f0fbfc}
 .mobile-home-stat-note{margin:3px 0 0;text-align:right;color:#afb3b8;font-size:10px;line-height:1.5}
 .mobile-home-section.more-features{padding-top:8px;padding-bottom:10px}
 .more-features .mobile-home-grid{row-gap:6px}
 .mobile-home-reference details.mobile-home-reception{margin:8px 15px 14px;border:1px solid #ebeff1;border-radius:8px;background:#fff;overflow:hidden}
 .mobile-home-reception>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;min-height:46px;padding:10px 13px;font-size:13px;font-weight:500;color:#6c737b}
 .mobile-home-reception>summary::-webkit-details-marker{display:none}
 .mobile-home-reception>summary::after{content:'⌄';font-size:19px;color:#969ea5;line-height:1}
 .mobile-home-reception[open]>summary::after{transform:rotate(180deg)}
 .mobile-home-reception>summary:focus-visible{outline:2px solid #12b6c7;outline-offset:-3px}
 .mobile-home-reception>div{padding:0 8px 10px;min-width:0}
 .mobile-home-reception .reception-board{margin:0!important;border:0!important;border-radius:0!important;padding:0!important}
 .mobile-home-reception .reception-tabs{padding:0 5px}
 .mobile-home-status{padding:4px 15px 11px;color:#a1a8af;font-size:10px;line-height:1.6;text-align:center;overflow-wrap:anywhere}
 .mobile-home-reference .empty{padding:20px 12px;font-size:13px;color:#9a9fa6}
 .shell .mobile-bottom{border-top:1px solid #f0f1f3;border-radius:0;box-shadow:none;padding:3px 3px env(safe-area-inset-bottom);background:#fff}
 .shell .mobile-bottom button{min-height:61px;gap:4px;padding:7px 3px 5px;background:#fff;border:0;border-radius:0;color:#9da2a8;font-size:11px;font-weight:400}
 .shell .mobile-bottom button.active{background:#fff;color:#0bb4c5;font-weight:400}
 .shell .mobile-bottom .nav-icon{width:24px;height:24px}
 dialog.modal.mobile-me-dialog,dialog.mobile-me-dialog{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:#3d434a}
 .mobile-me-dialog #modal-content{display:flex;flex-direction:column;min-height:100%;padding:0 0 calc(16px + env(safe-area-inset-bottom));background:#fff}
 .mobile-me-dialog #modal-content>h2{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;min-height:56px;background:#fff;font-size:18px;font-weight:500;color:#3d434a}
 .mobile-me-dialog #modal-content>h2 button{min-width:44px;min-height:44px;border:0;padding:8px;border-radius:8px;background:#fff;color:#777f87;font-size:14px}
 .mobile-me-profile{display:grid;grid-template-columns:60px minmax(0,1fr);column-gap:14px;row-gap:5px;align-items:center;padding:20px;background:#effbfc;margin-bottom:10px}
 .mobile-me-avatar{grid-column:1;grid-row:1 / span 2;display:flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:50%;background:#dcf8fa;color:#0ba9bb;font-size:25px;font-weight:500;overflow:hidden}
 .mobile-me-avatar>svg{width:34px;height:34px;color:#0ba9bb}
 .mobile-me-profile>div:not(.mobile-me-avatar){grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;gap:5px;min-width:0}
 .mobile-me-profile>strong,.mobile-me-profile>div>strong{grid-column:2;align-self:end;font-size:19px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;color:#3c434a}
 .mobile-me-profile>small,.mobile-me-profile>div>small{grid-column:2;align-self:start;font-size:12px;line-height:1.45;color:#9ba2aa;overflow-wrap:anywhere}
 .mobile-me-profile>div>strong,.mobile-me-profile>div>small{align-self:auto}
 .mobile-me-menu{display:flex;flex-direction:column;background:#fff;margin:0 0 10px}
 .mobile-me-menu>button,.mobile-me-extra>div>button{display:flex;align-items:center;gap:13px;min-height:56px;padding:12px 18px;border:0;border-bottom:1px solid #f0f2f4;border-radius:0;background:#fff;color:#545c64;text-align:left;font-size:15px}
 .mobile-me-menu>button:last-child{border-bottom:0}
 .mobile-me-menu>button>svg,.mobile-me-extra>div>button>svg{width:22px;height:22px;flex:none;color:#43bfce;stroke-width:1.7}
 .mobile-me-menu>button>span,.mobile-me-extra>div>button>span{flex:1;min-width:0;overflow-wrap:anywhere}
 .mobile-me-menu>button>span:last-child,.mobile-me-extra>div>button>span:last-child{flex:none;font-size:17px;color:#c0c5cb}
 .mobile-me-menu>button>small,.mobile-me-menu>button>i{font-size:17px;font-weight:400;font-style:normal;color:#c0c5cb;flex:none}
 .mobile-me-menu>button:active{background:#f6fbfc}
 .mobile-me-footer{margin-top:auto;padding:14px 18px 8px;text-align:center;color:#a7adb4;font-size:11px;line-height:1.7}
 .mobile-me-footer button{width:100%;min-height:48px;margin-bottom:12px;border:1px solid #e2e7eb;border-radius:8px;background:#fff;color:#757e87;font-size:14px}
 dialog .mobile-menu-grid{padding:14px 12px;background:#fff}
 .mobile-me-dialog #modal-content>.actions{margin:0;padding:12px 18px;background:#f5f6f8}
 .mobile-me-dialog #modal-form{padding-bottom:70px}
 .mobile-me-dialog #modal-form>.actions{display:none}
 .mobile-me-dialog #modal-content>h2{justify-content:flex-start}
 .mobile-me-dialog #modal-content>h2 button{font-size:28px;margin-right:5px}
 .mobile-me-dialog .mobile-me-profile{background:#effbfc;padding-block:24px}
 .mobile-me-bottom{position:fixed;inset:auto 0 0;display:flex;padding:3px 3px env(safe-area-inset-bottom);background:white;border-top:1px solid #f0f1f3;z-index:2}
 .mobile-me-bottom button{display:flex;flex:1;flex-direction:column;align-items:center;gap:4px;min-height:61px;padding:7px 3px 5px;border:0;background:white;color:#9da2a8;font-size:11px}
 .mobile-me-bottom button.active{color:#0bb4c5}.mobile-me-bottom svg{width:24px;height:24px}
 .mobile-home-section-head #mobile-home-all{padding:7px 0;min-width:58px;color:#7d8990;font-size:12px}
 .mobile-me-extra{border:0;margin:0;background:#fff}
 .mobile-me-extra>summary{display:flex;align-items:center;gap:13px;min-height:54px;padding:12px 18px;list-style:none;font-size:15px;cursor:pointer}
 .mobile-me-extra>summary::-webkit-details-marker{display:none}.mobile-me-extra>summary>svg{width:22px;height:22px;color:#43bfce}.mobile-me-extra>summary>span:first-of-type{flex:1}.mobile-me-extra>summary>span:last-child{color:#c0c5cb}
 .mobile-me-extra[open]>summary>span:last-child{transform:rotate(90deg)}
 .mobile-me-extra>div>button{width:100%;padding-left:52px;font-size:14px;background:#fafcfc}
 .mobile-me-extra>div>button>svg{width:19px;height:19px}
 .mobile-me-signout{padding:12px 18px}.mobile-me-signout>button{display:block;width:100%;min-height:44px;border:0;border-radius:6px;background:#f7f9fa;color:#65727a;font-size:14px}
 dialog.mobile-home-quick-dialog{position:fixed!important;inset:56px 12px auto auto!important;width:218px!important;max-width:calc(100vw - 24px)!important;height:auto!important;max-height:calc(100dvh - 90px)!important;margin:0!important;padding:0!important;border:1px solid #e3edef;border-radius:10px!important;background:#fff;box-shadow:0 8px 28px #163c4e26;overflow:auto}
 .mobile-home-quick-dialog::backdrop{background:#10232f24}
 .mobile-home-quick-dialog #modal-content>h2{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;margin:0;font-size:14px;font-weight:500;border-bottom:1px solid #eff3f4}
 .mobile-home-quick-dialog #modal-content>h2 button{min-height:32px;min-width:40px;border:0;background:transparent;color:#65727a;font-size:12px}
 .mobile-home-quick-dialog #modal-form,.mobile-home-quick-dialog #modal-form>.grid{padding:0;display:block}.mobile-home-quick-dialog #modal-form>.actions{display:none}
 .mobile-home-quick-dialog .mobile-menu-grid{display:flex;flex-direction:column;padding:0;gap:0}
 dialog.mobile-home-quick-dialog .mobile-menu-grid .mobile-feature-tile{flex-direction:row;justify-content:flex-start;align-items:center;gap:12px;min-height:51px;padding:8px 14px;text-align:left;border-bottom:1px solid #f0f3f5;font-size:14px}
 .mobile-home-quick-dialog .mobile-feature-icon{width:28px;height:28px;border-radius:7px}.mobile-home-quick-dialog .mobile-feature-icon svg{width:19px;height:19px}
 dialog.mobile-feature-dialog{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;inset:0!important;margin:0!important;padding:0!important;border:0;border-radius:0;background:#fff}
 .mobile-feature-dialog #modal-content{padding:0}.mobile-feature-dialog #modal-content>h2{margin:0;padding:18px 16px;font-size:18px;font-weight:500;border-bottom:1px solid #eff3f4}
 .mobile-feature-dialog #modal-form{padding:0 0 70px}.mobile-feature-dialog #modal-form>.actions{position:sticky;bottom:0;margin:0;padding:10px 16px;background:#fff;border-top:1px solid #edf2f4}
 .mobile-feature-dialog #modal-form>.actions button{min-height:44px;width:100%}.mobile-feature-groups{padding:6px 14px}.mobile-feature-groups h3{font-size:14px;font-weight:500;color:#8a959c;margin:15px 0 4px}.mobile-feature-groups .mobile-menu-grid{padding:6px 0 12px;border-bottom:1px solid #f0f3f4}

}
@media screen and (max-width:360px){
 .mobile-home-header button.mobile-clinic-name{font-size:17px}
 .mobile-home-section,.mobile-home-banner,.mobile-home-notice{margin-left:12px;margin-right:12px}
 .mobile-home-section{margin:0;padding-left:12px;padding-right:12px}
 .mobile-feature-icon{width:42px;height:42px}
 .mobile-feature-label{font-size:11px}
 .mobile-home-stat-grid>button>strong{font-size:18px}.mobile-home-stat-grid>button>strong.mobile-money-value{font-size:13px}
}
@media print{.mobile-home-reference{display:none!important}}
