/* Approved app pilot: phones plus touch tablets. Desktop and non-pilot users retain the existing layout. */
.phone-header,.phone-bottom-nav,.phone-care-controls{display:none}
@media screen and (max-width:600px), screen and (max-width:1366px) and (pointer:coarse){
  html{scroll-padding-top:90px;scroll-padding-bottom:104px}
  .app-shell .main-content{min-width:0;overflow:visible}
  .phone-header{display:flex;position:sticky;top:0;z-index:24;align-items:center;gap:10px;min-height:76px;padding:calc(8px + env(safe-area-inset-top)) 20px 8px;background:#f6f5f1;border-bottom:1px solid #e7e8e2}
  .phone-header button{background:none;border:0;min-height:44px;padding:0;font:inherit;color:#242722;cursor:pointer}
  .phone-brand{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;flex:0 0 88px}
  .phone-brand img{display:block;width:90px;height:auto;mix-blend-mode:multiply}
  .phone-brand.phone-carriage img{width:82px;max-height:48px;object-fit:contain}
  .phone-environment{font-size:9px!important;line-height:1.2;letter-spacing:.5px;color:#705219}
  .phone-home{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0;flex:1;text-align:right;font-size:12px!important}
  .phone-home-name{overflow-wrap:anywhere}
  .phone-home svg{width:14px;height:14px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6}
  .phone-header .phone-account{width:44px;flex:0 0 44px;height:44px;border-radius:50%;background:#e0e5da;color:#4b5a44;font-size:12px}
  .phone-bottom-nav{position:fixed;display:flex;justify-content:space-around;align-items:flex-start;bottom:0;left:0;right:0;z-index:26;height:calc(80px + env(safe-area-inset-bottom));padding:7px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border-top:1px solid #dedfd7;background:#fbfbf8f5;backdrop-filter:blur(16px)}
  .phone-bottom-nav .phone-nav-item,.phone-bottom-nav #mobile-menu{position:relative;inset:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:48px;width:64px;max-width:20%;height:60px;min-height:48px;border:0;border-radius:11px;box-shadow:none;background:none;color:#656b60;font:400 11px/1.2 Inter,Arial,sans-serif;cursor:pointer}
  .phone-nav-icon{display:flex;align-items:center;justify-content:center;position:relative;width:25px;height:25px}
  .phone-nav-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .phone-bottom-nav .active{background:#e5e9df;color:#29352f;font-weight:600}
  .phone-bottom-nav .phone-rounds{transform:translateY(-13px);height:68px;background:#29352f;color:#fff;border:4px solid #f6f5f1;border-radius:19px;box-shadow:0 3px 8px #29352f18;max-width:22%;width:70px;gap:3px}
  .phone-bottom-nav .phone-rounds.active{background:#196f66;box-shadow:0 3px 9px #196f6620}
  .phone-has-alerts .phone-nav-icon::after{content:'';width:7px;height:7px;position:absolute;right:1px;top:1px;border:1px solid #fbfbf8;border-radius:50%;background:#ab3c35}
  .phone-header :focus-visible,.phone-bottom-nav :focus-visible,.phone-care-controls :focus-visible,.phone-care-sheet :focus-visible{outline:3px solid #196f66;outline-offset:3px}
  .app-shell .page{padding:25px 20px calc(116px + env(safe-area-inset-bottom));max-width:100%;min-width:0}
  .page .page-header{gap:15px;margin-bottom:22px}.page .page-header h1,.page .resident-title-row h1{font-size:28px;letter-spacing:-1px;line-height:1.2;font-weight:500}
  .page .page-header p{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
  .page .page-actions{gap:8px}.page .page-actions .button{font-size:13px;min-height:46px;white-space:normal}
  .page #overview-start-round{flex-basis:100%}.page .calm-topline{font-size:11px;gap:10px;margin-bottom:18px}
  .page .calm-topline span:last-child{font-size:10px;overflow-wrap:anywhere}
  .page .card,.page .table-card{border-radius:12px}
  .page .metric-grid:not(.four){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0;padding:0}
  .page .metric-grid:not(.four) .metric-card{padding:0 0 0 12px;border:0;border-left:1px solid #dcded4;min-height:0;background:none;border-radius:0}
  .page .metric-grid:not(.four) .metric-card:first-child{border:0;padding-left:0}
  .page .metric-grid:not(.four) .metric-card>span{font-size:11px;line-height:1.45;display:block;min-height:32px}
  .page .metric-grid:not(.four) .metric-card strong{font-size:31px;line-height:1.3;letter-spacing:-1px;margin:6px 0}
  .page .metric-grid:not(.four) .metric-card small{font-size:10px;line-height:1.5}
  .page .mon-overview-grid{display:flex;flex-direction:column;gap:22px}.page .mon-overview-main{width:100%;order:2}.page .mon-for-you{order:1;width:100%}
  .page .mon-for-you header{margin-bottom:12px}.page .mon-for-you h2{font-size:16px}.page .mon-review{padding:19px;border-radius:12px}
  .page .mon-review-label{font-size:10px}.page .mon-review h3{font-size:17px}.page .mon-review-link{min-height:44px;font-size:13px}
  .page .overview-trend-card{padding:20px;margin-bottom:0}.page .overview-chart{width:100%;min-width:0;height:180px}.page .chart-card-heading h2{font-size:16px}
  .page .chart-card-heading p{font-size:12px}.page .calm-chart-total{font-size:29px}.page .calm-chart-total small{font-size:11px}
  .page .calm-chart-footer{gap:12px}.page .calm-chart-footer>span{font-size:11px}.page .segmented-control button{min-height:44px;font-size:12px;padding-inline:10px}
  .page .section-heading{padding:17px 18px;flex-direction:row;align-items:center;gap:12px}.page .section-heading h2{font-size:16px}.page .section-heading .text-action{font-size:12px;white-space:normal;min-height:44px}
  /* Two-row measurement summaries retain the actual table semantics and values. */
  .page .overview-recent table{display:block;min-width:0;width:100%}.page .overview-recent colgroup{display:none}
  .page .overview-recent thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .page .overview-recent tbody{display:block}.page .overview-recent tbody tr{display:grid;grid-template-columns:minmax(0,1fr) 62px 73px;gap:4px 8px;padding:15px 18px;border-top:1px solid #e7e8e2}
  .page .overview-recent td{padding:0;border:0;font-size:13px;overflow-wrap:anywhere;align-self:center}
  .page .overview-recent td:first-child{grid-column:1;grid-row:1/3}.page .overview-recent td:nth-child(4){grid-column:2/4;font-size:11px;margin-top:5px}
  .page .overview-recent td[colspan]{grid-column:1/-1}
  .page .calm-recent-person{gap:10px;min-height:44px;align-items:flex-start;font-size:13px}.page .calm-recent-person small{font-size:11px;white-space:normal;overflow-wrap:anywhere}.page .calm-recent-person .person-avatar{display:none}
  /* Directory uses existing rows and click/keyboard handlers; no hidden residents. */
  .page table[aria-label='Resident directory']{display:block;min-width:0}.page table[aria-label='Resident directory'] colgroup{display:none}
  .page table[aria-label='Resident directory'] thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #resident-table-body{display:block}#resident-table-body tr{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:10px 14px;padding:18px;border-top:1px solid #e7e8e2}
  #resident-table-body td{padding:0;border:0;font-size:13px}#resident-table-body td:first-child{grid-column:1/-1}#resident-table-body td:nth-child(2){grid-column:1;grid-row:2/4}#resident-table-body td:nth-child(4){grid-column:2;grid-row:2}#resident-table-body td:nth-child(5){grid-column:2;grid-row:3}
  #resident-table-body td:nth-child(4)::before{content:'Latest oximeter';display:block;font-size:11px;color:#656b60;margin-bottom:4px}
  #resident-table-body .person-avatar{display:grid;width:36px;height:36px;place-items:center;flex-shrink:0}#resident-table-body .rv-dir-compact{margin-top:7px}#resident-table-body td[colspan]{grid-column:1/-1}
  .page .resident-header{gap:12px;margin-bottom:18px}.page .resident-identity{gap:11px;align-items:center}.page .resident-avatar{width:46px;height:46px;flex-shrink:0;font-size:14px}
  .page .resident-title-row{gap:7px;flex-wrap:wrap}.page .resident-title-row h1{font-size:25px;overflow-wrap:anywhere}.page .resident-identity p{font-size:11px;line-height:1.6;overflow-wrap:anywhere}
  .page .resident-header .page-actions{display:flex;gap:8px}.page .resident-header .page-actions .button{font-size:12px}
  .page .resident-summary-grid.with-weight{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;background:none;border:0;margin:20px 0}
  .page .resident-summary-grid .resident-metric{background:white;border:1px solid #e7e8e2;border-radius:10px;padding:13px 10px;min-width:0}
  .page .resident-summary-grid .resident-metric:first-child{padding:13px 10px}.page .resident-summary-grid .resident-metric>strong{font-size:25px;letter-spacing:-1px;line-height:1.35;overflow-wrap:anywhere}
  .page .resident-summary-grid .resident-metric>span{font-size:11px;padding:0}.page .resident-summary-grid .resident-metric small{font-size:10px;line-height:1.5;overflow-wrap:anywhere;display:block}
  .page .resident-summary-grid .resident-card-icon{display:none}.page .resident-summary-grid .weight-summary .button{font-size:11px;min-height:44px;white-space:normal}
  .phone-care-controls{display:flex;gap:8px;margin-bottom:18px}.phone-care-controls button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:46px;flex:1;border:1px solid #d8dcd0;background:transparent;border-radius:9px;color:#29352f;font:500 12px Inter,Arial,sans-serif;cursor:pointer;padding:8px}
  .phone-care-controls svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}.phone-care-controls [data-phone-care=identity]{flex:0 0 44px}
  /* Hide only duplicated summaries. Assigned review cards remain visible. */
  .page .phone-care-rail>.identifier-card,.page .phone-care-rail>[data-rail-summary=plan],.page .phone-care-rail>[data-rail-summary=contacts]{display:none}
  .page .phone-care-rail:not(:has([data-rail-summary=review])){display:none}
  .page>.mon-tabs:has([data-mon-action=measurements][aria-current=page]){display:none}
  .page:has(.mon-resident:not([hidden]))>.phone-care-controls{display:none}
  .page .calm-resident-grid.mv-layout{display:flex;flex-direction:column;gap:18px}.page .mv-oximeter{width:100%}.page .mv-workspace{width:100%;margin-top:6px}
  .page .trend-card-header{gap:12px;padding:18px}.page .trend-card-title{flex-direction:row;align-items:center;flex-wrap:wrap;gap:10px}.page .trend-card-title h2{font-size:16px}
  .page .trend-chart{min-width:0;height:auto;min-height:180px}.page .trend-card-body{padding:0 10px 16px}.page .resident-chart-note{font-size:11px;line-height:1.6}
  .page .rv-history-scroll{max-height:292px;overscroll-behavior:contain}.page .resident-reading-history th,.page .resident-reading-history td{padding:13px 10px;font-size:14px}.page .rv-table-wrap .rv-detail-col{width:88px}.page .rv-details-action{min-width:44px;min-height:44px;font-size:12px;padding:4px}
  .page .mv-heading{margin-bottom:12px}.page .mv-heading h2{font-size:16px}.page .mv-heading p{font-size:12px}
  .page .mv-tabs{gap:8px;padding:0;border:0;background:transparent;border-radius:0;margin-bottom:14px}.page .mv-selection{display:none}
  .page .mv-tabs button{border:1px solid #dfe3d8;border-radius:12px;min-height:92px;align-items:flex-start;text-align:left;padding:12px 10px;gap:8px;justify-content:flex-start}
  .page .mv-tabs button[aria-selected=true]{background:#e4eadd;border-color:#b8c5ac}.page .mv-icon{width:22px;height:22px;background:none;border-radius:0}.page .mv-icon svg{width:21px;height:21px}.page .mv-tab-name{font-size:12px}.page .mv-tabs small{font-size:11px}
  .page .mv-panel-header{gap:10px;padding:20px 18px;align-items:flex-start}.page .mv-panel-header .button{min-height:46px;max-width:130px;white-space:normal;padding:10px;font-size:12px}.page .mv-value{font-size:26px}.page .mv-value span{font-size:13px}.page .mv-panel-header p{font-size:11px}
  .page .mv-toolbar{padding:0 18px 12px;gap:8px}.page .mv-toolbar>div{gap:8px;flex-wrap:wrap}.page .mv-chart-frame{min-height:190px}.page .mv-chart{height:190px}.page .mv-chart-empty{min-height:190px}
  .page .mv-chart-caption{padding:10px 18px 16px;flex-wrap:wrap;gap:4px;font-size:11px}.page .mv-history-heading{padding:16px 18px}.page .mv-footer{padding:12px 18px;font-size:11px}
  .page .mv-history tr{gap:12px;padding:15px 18px}.page .mv-history td{font-size:14px;line-height:1.5}.page .mv-history td:last-child{grid-column:1/-1}
  .page .round-ui{padding:0}.page .rv-panel{border-radius:12px}.page .rv-panel-head{padding:18px;gap:10px;align-items:flex-start}.page .rv-panel-head h2{font-size:16px}.page .rv-panel-head p{font-size:12px;line-height:1.6;margin-top:8px}
  .page .rv-panel-body{padding:18px}.page .rv-device-row{padding:15px 0;gap:10px}.page .rv-device-copy{flex:1;min-width:0}.page .rv-device-copy strong{font-size:14px;overflow-wrap:anywhere}.page .rv-device-copy small{font-size:12px;line-height:1.6}
  .page .rv-device-meta{margin-left:0}.page .rv-device-row .button{min-height:46px}.page .rv-symbol{width:44px;height:54px;border-radius:14px}.page .rv-symbol svg{width:24px;height:24px}
  .page #safe-round-banner:not(:empty){position:sticky;top:calc(76px + env(safe-area-inset-top));z-index:18;background:#f6f5f1;padding:8px 0}
  .page .rv-reservation{padding:13px;gap:10px;margin:0 0 12px;border-radius:11px;background:#e9eee3;flex-wrap:wrap}.page .rv-reservation strong{font-size:13px}.page .rv-reservation small{font-size:11px}.page .rv-reservation .rv-left{min-width:0;flex:1}.page .rv-reservation .button{font-size:12px;min-height:44px;padding:8px}
  .page .rv-steps{flex-wrap:wrap;gap:10px;font-size:11px}.page .rv-steps b{border-radius:6px}.page .rv-instructions{font-size:13px;line-height:1.65;margin-bottom:16px}.page .rv-identity{padding:17px;border-radius:10px}.page .rv-identity h3{font-size:18px}.page .rv-identity small{font-size:12px;line-height:1.6}.page .rv-identity dl{gap:12px;flex-wrap:wrap}.page .rv-waiting{padding:18px}.page .rv-waiting p{font-size:13px;line-height:1.7}.page .rv-actions{gap:12px}.page #safe-confirm{width:100%;white-space:normal}.page .rv-resident-search input{font-size:16px}.page .rv-resident-choices{max-height:45dvh}.page .rv-receipt{padding:18px;gap:16px}.page .rv-count{font-size:12px}.page .rv-values strong{font-size:28px}.page .rv-receipt-meta{font-size:12px;line-height:1.6}
  .phone-care-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;height:auto;max-height:90dvh;border:0;border-radius:20px 20px 0 0;padding:0;background:white;color:#242722;font:14px/1.6 Inter,Arial,sans-serif;box-shadow:0 -12px 60px #29352f20}
  .phone-care-sheet::backdrop{background:#29352f55}.phone-care-sheet>header{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-bottom:1px solid #e7e8e2}.phone-care-sheet h2{font-size:18px;font-weight:500;margin:0}.phone-care-sheet header button{min-width:44px;min-height:44px;border:0;background:none;font-size:26px;color:#656b60;cursor:pointer}.phone-care-body{padding:20px 20px calc(20px + env(safe-area-inset-bottom));overflow:auto}.phone-care-body>.card,.phone-care-body>.mon-review{padding:0;border:0;background:white;box-shadow:none}.phone-care-body .identifier-card>span:not(.resident-card-icon){display:none}.phone-care-body .resident-card-icon{display:none}.phone-care-body dl{margin:15px 0}.phone-care-body dl>div{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #e7e8e2;font-size:13px}.phone-care-body dd{margin:0;overflow-wrap:anywhere;text-align:right}.phone-care-body dt{color:#656b60}.phone-care-body .calm-rail-link{font-size:14px;min-height:48px}
  .mv-drawer[open],.rv-dialog[open],.mon-dialog[open]{inset:auto 0 0;margin:0;width:100%;max-width:100%;height:auto;max-height:92dvh;border:0;border-radius:20px 20px 0 0}
  .mv-drawer[open]{height:92dvh}.mv-drawer>header{padding:18px 20px}.mv-drawer h2{font-size:21px}.mv-drawer-body{padding:20px}.mv-drawer footer{padding:16px 20px calc(16px + env(safe-area-inset-bottom))}.mv-fields{gap:18px 16px}.mv-actions button{flex:1;min-height:48px}.mv-identity{margin-bottom:20px}
  .rv-dialog .rv-body,.mon-dialog .mon-form{padding:20px}.rv-dialog input,.rv-dialog select,.rv-dialog textarea,.mon-dialog input,.mon-dialog select,.mon-dialog textarea{font-size:16px;min-height:46px}
  .modal-backdrop{align-items:flex-end;padding:0}.modal-backdrop .modal{max-height:92dvh;max-width:100%;width:100%;border-radius:20px 20px 0 0}.modal-backdrop input,.modal-backdrop select,.modal-backdrop textarea{font-size:16px}
  .toast-region{bottom:calc(100px + env(safe-area-inset-bottom));left:20px;right:20px;width:auto}
  .phone-care-controls button:hover,.phone-header button:hover{background:#e9eee3}.phone-bottom-nav button:hover{filter:brightness(.97)}
  @media(prefers-reduced-motion:no-preference){.phone-care-sheet[open],.mv-drawer[open],.rv-dialog[open],.mon-dialog[open]{animation:phone-sheet-in .22s ease-out}@keyframes phone-sheet-in{from{transform:translateY(30px);opacity:.6}to{transform:translateY(0);opacity:1}}}
}
@media print{.phone-header,.phone-bottom-nav,.phone-care-controls{display:none!important}}

/* Care, in motion — approved mobile concept 02. */
.phone-vital-tabs,.phone-oximeter-summary,.phone-history-button,.phone-resident-directory,.phone-resident-options{display:none}
@media screen and (max-width:600px), screen and (max-width:1366px) and (pointer:coarse){
  body{background:#f6f5f1;isolation:isolate}
  body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 0% 0%,#a9bbb0a8 0%,transparent 56%),radial-gradient(ellipse at 100% 15%,#d7c99b70 0%,transparent 50%),linear-gradient(165deg,#e6e9df 0%,#f6f5f1 62%,#e4ebe6 100%)}
  .app-shell,.app-shell.sidebar-collapsed{display:block;background:transparent}
  .app-shell .main-content{background:transparent}
  .app-shell .sidebar,.app-shell.sidebar-collapsed .sidebar{position:fixed;z-index:40;inset:0 auto 0 0;width:min(340px,calc(100vw - 48px));padding-top:58px;transform:translateX(-105%);visibility:hidden;box-shadow:8px 0 30px #20382c24}
  .app-shell .sidebar.open,.app-shell.sidebar-collapsed .sidebar.open{transform:translateX(0);visibility:visible;overflow:auto}
  .app-shell .sidebar-resize,.app-shell .sidebar-restore,.sidebar-collapse{display:none}
  .mobile-nav-close{position:absolute;top:max(10px,env(safe-area-inset-top));right:10px;display:grid;place-items:center;width:44px;height:44px;font-size:26px;background:none;border:0;color:#29352f}
  .mobile-nav-scrim{position:fixed;z-index:39;inset:0;display:block;width:100%;height:100%;border:0;background:#29352f55}.mobile-nav-scrim[hidden]{display:none}
  .phone-header{position:relative;max-width:1180px;margin:auto;background:none;border:0;padding:calc(16px + env(safe-area-inset-top)) 22px 12px;gap:14px;z-index:24}
  .phone-header #mobile-menu{position:static;display:grid;place-items:center;box-shadow:none;border:1px solid #d9ded2;background:#e6e9dd;width:44px;height:44px;border-radius:50%;font-size:12px;flex:0 0 44px;color:#29352f}
  .phone-home{justify-content:flex-start;text-align:left;font-size:13px!important}
  .phone-brand{flex-basis:66px}.phone-brand img{width:66px}.phone-brand.phone-carriage img{width:62px}
  .phone-bottom-nav{position:fixed;left:50%;right:auto;bottom:calc(16px + env(safe-area-inset-bottom));transform:translateX(-50%);display:grid;grid-template-columns:repeat(var(--phone-count,4),minmax(0,1fr));align-items:stretch;width:calc(100% - 32px);max-width:390px;height:76px;padding:6px;border-radius:29px;background:linear-gradient(155deg,#56625bef 0%,#313b35f5 45%,#1f2924f5 100%);backdrop-filter:blur(20px);border:1px solid #ffffff30;box-shadow:0 12px 30px #20382c2b,inset 0 1px 0 #ffffff45}
  .phone-bottom-nav .phone-nav-item{z-index:1;max-width:none;width:100%;height:62px;min-width:0;border:0;border-radius:23px;color:#e1e8e2;font-size:11px;font-weight:400;background:none;gap:5px}
  .phone-bottom-nav .phone-nav-item.active{color:#29352f;background:none;font-weight:400}
  .phone-nav-track{position:absolute;inset:6px auto 6px 6px;width:calc((100% - 12px)/var(--phone-count,4));border-radius:23px;background:linear-gradient(145deg,#fff,#e1e8dc);box-shadow:0 2px 8px #101d2017;transform:translateX(calc(var(--phone-selected,0)*100%))}
  .phone-nav-track[hidden]{display:none}.phone-has-alerts .phone-nav-icon::after{background:#e8a65e;border:0}
  .app-shell .page{max-width:1180px;min-height:var(--phone-page-height,0px);padding:18px 22px calc(126px + env(safe-area-inset-bottom));margin:auto}
  .page .page-header h1{font-size:34px;font-weight:400;line-height:1.17;letter-spacing:-1.4px}
  .page .card,.page .table-card{border-radius:22px}.page .resident-avatar{background:#e6eadd;border-radius:15px}
  .page .resident-header{flex-direction:row;flex-wrap:nowrap;align-items:center}.page .resident-header .resident-identity{min-width:0;flex:1}.page .resident-header .page-actions{display:none}.phone-resident-options{display:grid;place-items:center;background:#fff;border:1px solid #e1e5dc;border-radius:50%;width:44px;min-width:44px;height:44px;min-height:44px;font-size:24px;cursor:pointer;color:#29352f}
  .page .resident-summary-grid.with-weight{display:none}
  .page .calm-resident-grid.mv-layout{display:flex;flex-direction:column;gap:16px}
  .phone-resident-directory{display:contents}.phone-resident-directory>h2,.phone-resident-directory>.phone-directory-search,.phone-resident-directory>.phone-directory-list,.phone-resident-directory>.phone-directory-empty{display:none}
  .phone-vital-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;order:0}
  .phone-vital-tabs button{border:1px solid #e1e5dc;background:#fff;color:#29352f;border-radius:16px;padding:12px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:72px;font:400 11px/1.3 Inter,Arial,sans-serif;cursor:pointer}
  .phone-vital-tabs [aria-selected=true]{background:#e1ebdd;border-color:#c5d7bd}.phone-vital-icon svg{height:20px;width:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .phone-vital-tabs :focus-visible,.phone-history-button:focus-visible,.phone-resident-options:focus-visible{outline:3px solid #196f66;outline-offset:3px}
  .page .mv-oximeter{order:1;border-radius:22px;border:1px solid #e1e5dc;background:#fff}
  .page .mv-workspace{order:1;margin:0;min-width:0}.page .mv-panel{border-radius:22px}
  .page [data-phone-metric=oximeter]>.mv-workspace,.page .calm-resident-grid[data-phone-metric]:not([data-phone-metric=oximeter])>.mv-oximeter{display:none}
  .page .mv-workspace>.mv-heading,.page .mv-workspace>.mv-tabs{display:none}
  .phone-oximeter-summary{display:block;padding:24px 20px 8px}.phone-hero-label{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#677269;font-size:13px}.phone-source{background:#e6ece2;color:#29352f;border-radius:7px;padding:5px 9px;font-size:11px}
  .phone-value{font-size:54px;line-height:1.15;letter-spacing:-2.6px;margin-top:12px;font-variant-numeric:tabular-nums;font-weight:400}.phone-value small{font-size:20px;color:#677269;letter-spacing:0;margin-left:5px}
  .phone-oximeter-summary p,.phone-oximeter-summary>small{font-size:12px;color:#677269;line-height:1.6;margin:6px 0 0;display:block}
  .page .trend-card-header{padding:12px 20px;flex-wrap:wrap}.page .trend-card-title h2{display:none}.page .trend-card-title{gap:0}.page .trend-card-header .segmented-control{min-width:0}.page .trend-card-header button{font-size:11px;min-height:44px;padding:8px 10px}
  .page .mv-oximeter>.trend-card{display:flex;flex-direction:column}.phone-oximeter-summary{order:0}.page .mv-oximeter .trend-card-body{order:1}.page .mv-oximeter .trend-card-header{order:2}
  .page .trend-card-body{padding:0 12px 16px}.page .resident-chart-legend{font-size:12px}.page .resident-chart-note{font-size:11px;line-height:1.6}
  .page .mv-panel-header{padding:24px 20px 16px}.page .mv-value{font-size:44px;letter-spacing:-1.8px;font-weight:400}.page .mv-value span{font-size:16px}.page .mv-panel-header p{font-size:12px;line-height:1.6}
  .page .mv-toolbar{padding:0 20px 12px}.page .mv-toolbar select{min-height:44px;font-size:13px}.page .mv-chart-frame{min-height:205px}.page .mv-chart{height:auto;min-height:205px}
  .page .mv-toolbar select,.page .mv-chart-caption [data-mv-values]{display:none}.page .mv-chart-empty{min-height:170px}
  .phone-chart-periods{display:flex;background:#f2f3ed;padding:4px;border-radius:14px;gap:4px;margin:12px 20px}.phone-chart-periods button{flex:1;min-height:44px;border:0;border-radius:10px;background:none;font:400 12px Inter,Arial,sans-serif;color:#677269;cursor:pointer}.phone-chart-periods [aria-pressed=true]{background:#fff;color:#29352f;box-shadow:0 2px 5px #29352f09}
  .page .mv-history-heading,.page .mv-history,.page .mv-footer,.page .resident-reading-history{display:none}
  .phone-history-button{display:flex;align-items:center;justify-content:space-between;margin:0 20px 20px;padding:12px 16px;width:calc(100% - 40px);border:1px solid #e1e5dc;border-radius:12px;background:#fff;min-height:48px;color:#196f66;font:400 14px Inter,Arial,sans-serif;cursor:pointer}
  .phone-care-controls{order:3;margin:0;gap:8px}.phone-care-controls button{border-radius:14px;background:#f6f5f180;min-height:48px}.page .phone-care-rail{order:4}
  .phone-care-sheet{max-height:90dvh;overflow:auto}.phone-care-sheet.expanded{height:94dvh;max-height:94dvh}.phone-care-sheet .phone-sheet-grip{display:grid;place-items:center;width:100%;height:44px;min-height:44px;border:0;background:none;touch-action:none;cursor:ns-resize}.phone-sheet-grip span{width:38px;height:4px;border-radius:4px;background:#b9c1b6}
  .phone-care-sheet>header{padding-top:0}.phone-care-sheet .page-actions{display:flex;flex-wrap:wrap;gap:16px}.phone-care-sheet .page-actions .button{min-height:48px}
  .phone-care-sheet .resident-reading-history,.phone-care-sheet .mv-history{display:block;border:0}.phone-care-sheet .rv-history-scroll{max-height:none;height:auto}.phone-care-sheet table{width:100%;min-width:0}.phone-care-sheet th,.phone-care-sheet td{font-size:14px;padding:14px 8px;vertical-align:top;overflow-wrap:anywhere}.phone-care-sheet td small{display:block;margin-top:5px;color:#677269}
  .phone-care-sheet .rv-detail-col button{min-height:44px;min-width:44px}.phone-care-sheet .mv-history td:before{font-size:12px}
  .page .overview-trend-card{border-radius:22px;padding:24px 20px 16px}.page .calm-chart-total{font-size:48px;letter-spacing:-2px}.page .calm-chart-total small{font-size:12px;letter-spacing:0}.page .calm-chart-footer{flex-direction:column;align-items:stretch}.page .calm-chart-footer .segmented-control{display:flex;background:#f2f3ed;border-radius:14px;padding:4px}.page .calm-chart-footer button{flex:1;border-radius:10px;border:0}.page .calm-chart-footer button.active{background:#fff}
  .page .metric-grid:not(.four){gap:12px}.page .metric-grid:not(.four) .metric-card{background:#eeefe8;border:1px solid #e2e5da;border-radius:18px;padding:14px 12px}.page .metric-grid:not(.four) .metric-card:first-child{padding:14px 12px;border:1px solid #e2e5da}.page .metric-grid:not(.four) .metric-card strong{font-weight:400}
  @media(min-width:700px){
    .phone-header{padding-inline:32px}.app-shell .page{padding-inline:32px}.phone-bottom-nav{max-width:450px}
    .page .calm-resident-grid.mv-layout{display:grid;grid-template-columns:200px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:24px;align-items:start}
    .phone-resident-directory{display:block;grid-column:1;grid-row:1/3;border-right:1px solid #e1e5dc;padding-right:20px;min-width:0}.phone-resident-directory h2{font-size:17px;margin:0 0 16px}.phone-directory-search input{width:100%;min-height:44px;border:1px solid #e1e5dc;border-radius:14px;padding:10px 12px;font-size:16px;background:#fff}.phone-directory-list{max-height:400px;overflow:auto;margin-top:12px}.phone-directory-person{display:block;min-height:58px;width:100%;padding:12px 10px;border:0;border-radius:12px;text-align:left;background:none;cursor:pointer;font:inherit;color:#29352f}.phone-directory-person strong{display:block;font-size:13px;font-weight:400}.phone-directory-person small{display:block;font-size:12px;color:#677269;margin-top:5px}.phone-directory-person[aria-current=true]{background:#e6ece2}.phone-directory-person[hidden]{display:none}.phone-directory-empty{font-size:13px}
    .phone-resident-directory>h2,.phone-resident-directory>.phone-directory-search,.phone-resident-directory>.phone-directory-list,.phone-resident-directory>.phone-directory-empty:not([hidden]){display:block}.phone-directory-search>.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.phone-resident-directory>.phone-care-controls{display:flex;margin-top:20px}
    .phone-vital-tabs{grid-column:2;grid-row:1}.phone-vital-tabs button{flex-direction:row;min-height:56px;gap:8px;font-size:12px;padding:10px 6px}
    .page .mv-oximeter,.page .mv-workspace{grid-column:2;grid-row:2}.phone-care-controls{grid-column:1;grid-row:3;flex-wrap:wrap;align-self:start}.phone-care-controls button{flex-basis:100%}.phone-care-controls [data-phone-care=identity]{flex-basis:100%}.page .phone-care-rail{grid-column:2;grid-row:3}
    .phone-care-sheet,.mv-drawer[open],.rv-dialog[open],.mon-dialog[open]{left:50%;right:auto;transform:translateX(-50%);width:min(680px,calc(100% - 48px));max-width:680px;border-radius:24px 24px 0 0}
    .page .trend-chart{min-height:240px}.page .mv-chart-frame{min-height:240px}.page .mv-chart{min-height:240px}
    .page .mon-overview-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px}.page .mon-overview-main{order:0}.page .mon-for-you{order:1}
  }
  @media(prefers-reduced-motion:no-preference){.phone-nav-track{transition:transform 320ms cubic-bezier(.22,.85,.25,1)}.phone-vital-tabs button{transition:background .18s,border-color .18s}.phone-care-sheet[open]{animation:phone-panel-in .24s ease-out}@keyframes phone-panel-in{from{opacity:0;translate:0 32px}to{opacity:1;translate:0 0}}}
}

/* App-native shell and workflow surfaces. Loaded only for the existing pilot. */
.phone-alert-options{display:none}
@media screen and (max-width:600px), screen and (max-width:1366px) and (pointer:coarse){
  .app-shell .sidebar,.app-shell.sidebar-collapsed .sidebar,.app-shell .sidebar.open,.mobile-nav-scrim{display:none!important}
  .phone-header{gap:10px;padding-bottom:16px;align-items:center}
  .phone-brand{flex:0 0 40px;align-items:center;position:relative;min-width:40px}
  .phone-brand img{width:40px;height:40px;mix-blend-mode:normal;border-radius:12px}
  .phone-environment{position:absolute;top:45px;font-size:8px!important}
  .phone-home{display:grid;grid-template-columns:minmax(0,1fr) 14px;column-gap:8px;row-gap:2px;justify-content:start;align-items:center}
  .phone-home-caption{grid-column:1;font:400 9px/1.4 Inter,Arial,sans-serif;letter-spacing:1.2px;color:#5b685f}
  .phone-home-name{grid-column:1;font-size:13px;font-weight:600;line-height:1.4}
  .phone-home svg{grid-column:2;grid-row:1/3;transform:rotate(90deg)}
  .phone-header #mobile-menu{background:#ffffff45;border-color:#ffffff55}
  .phone-bottom-nav{height:72px;padding:5px;border-radius:28px;background:linear-gradient(145deg,#506158b8,#25382fbb);-webkit-backdrop-filter:blur(22px) saturate(130%);backdrop-filter:blur(22px) saturate(130%);border:1px solid #ffffff60;box-shadow:0 8px 24px #24382c26,inset 0 1px 0 #ffffff5c}
  .phone-bottom-nav .phone-nav-item{height:60px;color:#fff}.phone-nav-track{inset:5px auto 5px 5px;width:calc((100% - 10px)/var(--phone-count,4));background:linear-gradient(145deg,#fffffff0,#edf3e9d9)}
  .phone-care-sheet{background:#f8faf5f0;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}
  .phone-care-sheet::backdrop{background:#243b3038;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
  .phone-care-body>.phone-transient{display:block}.phone-transient .phone-sheet-intro{font-size:14px;color:#5b685f;margin:0 0 18px}
  .phone-menu-row{display:flex;align-items:center;gap:14px;width:100%;padding:16px 12px;min-height:56px;border:0;border-bottom:1px solid #dce3d7;background:none;color:#29352f;text-align:left;font:400 15px/1.5 Inter,Arial,sans-serif;text-decoration:none;cursor:pointer;border-radius:10px}
  .phone-menu-row>span:first-of-type{flex:1}.phone-menu-row svg{width:22px;height:22px;flex:0 0 22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
  .phone-menu-row[aria-selected=true]{background:#e2ebdc;border-color:transparent}.phone-menu-row:hover{background:#e9eee3}.phone-menu-row:disabled{opacity:.6;cursor:wait}
  .phone-account-summary{display:grid;gap:6px;margin-bottom:18px;padding:0 12px 16px;border-bottom:1px solid #dce3d7}.phone-account-summary strong{font-size:20px;font-weight:500}.phone-account-summary small{color:#5b685f;font-size:13px}
  .phone-care-body>.mon-actions{display:grid;gap:12px}.phone-care-body>.mon-actions button{min-height:48px;border:1px solid #dce3d7;border-radius:12px;background:#fff;color:#29352f;font:inherit;padding:12px}
  /* A compact round context followed by a single clear clinical step. */
  .page[data-phone-view=rounds]>.page-header{margin-bottom:20px}.page[data-phone-view=rounds]>.page-header p{display:none}
  .page[data-phone-view=rounds] .page-header h1{font-size:30px;letter-spacing:-1px}
  .page .round-ui{font-size:14px}.page .rv-layout{display:block}.page .rv-aside{display:none}
  .page #safe-round-banner:not(:empty){position:static;background:transparent;padding:0;margin-bottom:12px}
  .page .rv-reservation{padding:12px 14px;margin:0;border:1px solid #ffffff8c;border-radius:18px;background:#f7faf2a8;backdrop-filter:blur(16px);flex-wrap:nowrap;gap:12px}
  .page .rv-reservation .rv-symbol{width:36px;height:36px;border-radius:11px;background:#e3ecdf}.page .rv-reservation .rv-left{gap:10px}.page .rv-reservation strong{font-size:12px;line-height:1.4;font-weight:500}.page .rv-reservation small{font-size:11px;line-height:1.5;margin-top:3px}
  .page .rv-reservation .button{flex:0 0 auto;min-width:76px;border:0;background:#ffffffa8;border-radius:12px;font-weight:500}
  .page .rv-panel{border-radius:22px;border:1px solid #e1e5dc;background:#ffffffed}.page #safe-round-main>.rv-panel>.rv-panel-head{padding:20px 20px 0;gap:12px}.page #safe-round-main>.rv-panel>.rv-panel-head h2{font-size:12px;letter-spacing:.4px;text-transform:uppercase;font-weight:400;color:#5b685f}
  .page #safe-round-main>.rv-panel:has(#round-resident-search)>.rv-panel-head{display:none}
  .page #safe-round-main .rv-panel-body{padding:24px 20px}.page #safe-round-main .rv-panel-body>h2{font-size:24px;font-weight:400;letter-spacing:-.7px;margin:0 0 10px;line-height:1.25}
  .page #safe-round-main .rv-instructions{font-size:13px;line-height:1.7;margin-bottom:20px}
  .page .rv-resident-search{margin:0 0 8px}.page .rv-resident-search label{font-size:12px;font-weight:400}.page .rv-resident-search input{min-height:48px;border-radius:14px;background:#f2f5ee;border-color:#e0e6d9;padding:12px;font-size:16px}.page #round-resident-results{font-size:11px;margin:8px 0;color:#5b685f}
  .page .rv-resident-choices{max-height:42dvh;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .page .rv-resident-choices .rv-device-row{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) 44px;align-items:center;gap:10px;min-height:80px;padding:14px 0;flex-wrap:nowrap}
  .page .rv-resident-choices .rv-device-row[hidden]{display:none}
  .page .rv-resident-choices .rv-device-copy:has(.phone-round-location)>small{display:none}.phone-round-location{display:block;font-size:11px;line-height:1.5;color:#5b685f;margin-top:4px;overflow-wrap:anywhere}
  .page .rv-resident-choices .rv-device-copy strong{font-size:14px;font-weight:500}.page .rv-resident-choices .rv-device-copy small{font-size:11px;line-height:1.5}
  .page .rv-resident-choices .button{font-size:0;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;background:#edf2e7;border-radius:50%}
  .page .rv-resident-choices .button:after{content:'→';font-size:22px;font-weight:400}.page .rv-resident-choices .rv-avatar{border-radius:13px}
  .page #safe-round-main .rv-device-row:not([data-resident-search]){display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px}.page #safe-round-main .rv-device-meta{grid-column:2;text-align:left;min-width:0;margin:0}.page #safe-round-main .rv-device-row:not([data-resident-search])>.button{grid-column:1/-1;width:100%;border-radius:14px}
  .page .rv-steps{gap:8px;padding-bottom:18px;font-size:10px}.page .rv-steps i{display:none}.page .rv-steps b{border-radius:50%;width:20px;height:20px}.page .rv-steps svg{width:16px}
  .page .rv-identity{border:0;background:#edf2e7;border-radius:18px;padding:18px;margin-bottom:18px}.page .rv-identity h3{font-size:19px;font-weight:500}.page .rv-identity-top{margin-bottom:8px}.page .rv-identity dl{gap:12px;margin:12px 0 0}.page .rv-identity dt{font-size:11px}.page .rv-identity dd{font-size:13px}
  .page .rv-waiting{background:none;text-align:center;padding:12px 0 16px;margin:0}.page .rv-waiting:before{content:'';display:block;width:64px;height:64px;margin:0 auto 20px;border-radius:23px;background:#e3ebdc url('assets/rpm-app-icon-v2.svg') center/38px no-repeat}.page .rv-waiting h3{font-size:23px;font-weight:400;letter-spacing:-.5px;margin-bottom:12px}.page .rv-waiting p{font-size:13px;line-height:1.75}
  .page .rv-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}.page .round-ui .button.primary{border-radius:14px;min-height:50px;font-weight:500}.page #safe-next{width:100%}.page .rv-status{font-size:12px}
  .page .rv-inbox{margin-top:20px}.page .rv-inbox .rv-panel-head{padding:18px 20px}.page .rv-inbox .rv-panel-head h2{font-size:16px}.page .rv-inbox .rv-empty{padding:12px 20px 20px;font-size:13px}.page .rv-history-link{padding:14px 0;font-size:12px}.page .rv-history-link>span{display:none}
  /* Alert queue is a native card list; secondary tools open from a sheet. */
  .page .av-page-heading{display:flex;align-items:center;flex-wrap:nowrap;gap:12px;margin-bottom:12px}.page .av-page-heading h1{font-size:30px;font-weight:400;letter-spacing:-1px;line-height:1.2}.page .av-page-heading p{display:none}.page .av-page-heading>.mon-actions{display:none}
  .phone-alert-options{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #ffffff80;border-radius:50%;background:#ffffff60;color:#29352f;cursor:pointer}
  .page .av-service{margin-bottom:16px}.page .av-service>summary{font-size:11px;line-height:1.6;min-height:36px}.page .av-toolbar{display:flex;flex-direction:row;flex-wrap:wrap;gap:12px;border:0;padding:0;margin:0 0 22px}
  .page .av-tabs{width:100%;display:flex;gap:6px;overflow-x:auto;padding:2px}.page .av-tabs .mon-button{flex:1;min-width:96px;min-height:48px;border-radius:13px;background:#ffffff65;padding:10px 8px;font-size:11px;line-height:1.4;white-space:normal}.page .av-tabs .mon-button.selected{background:#e0ebda;color:#244434}.page .av-tabs .mon-button span{margin-left:4px}
  .page .av-search{flex:1;min-width:140px;max-width:none;background:#ffffff70;border-color:#dce3d7;border-radius:14px;min-height:46px}.page .av-search input{font-size:16px}.page .av-filter-options{font-size:12px}.page .av-filter-options summary{padding:10px;min-height:44px}.page .av-filter-options[open]{flex-basis:100%}
  .page .av-workspace{display:block}.page .av-queue{display:grid;gap:16px}.page .av-queue-heading{display:none}.page .monitoring.av-page .av-queue-row,.page .monitoring.av-page .av-queue-row.mon-selected{border:1px solid #e1e5dc;border-radius:22px;padding:20px;margin:0;background:#fffffff0;box-shadow:none}
  .page .av-queue-top{margin-bottom:14px;font-size:11px}.page .av-queue-row h3{font-size:19px;letter-spacing:-.4px;font-weight:500}.page .av-queue-row p{font-size:12px;margin-top:8px}.page .av-queue-next{font-size:12px;line-height:1.6;padding-top:14px;margin-top:18px}.page .av-queue-note{grid-column:1/-1;font-size:11px;line-height:1.7;margin:4px 0 0;padding:0}.page .av-empty-state{border-radius:22px;background:#ffffffb8;min-height:220px}
  .page .av-detail{display:none}.page .av-detail-open .av-detail{display:block}.page .av-detail-open .av-queue,.page .av-detail-open .av-toolbar,.page .av-detail-open .av-page-heading,.page .av-detail-open .av-service{display:none}.page .av-page .av-back{display:inline-flex;margin-bottom:12px}
  .page .av-detail-card,.page .monitoring .av-detail>.av-activity{border-radius:22px}.page .av-detail-head,.page .av-detail-body,.page .monitoring .av-detail>.av-activity{padding:22px 20px}.page .av-detail-head .av-eyebrow{font-size:9px;overflow-wrap:anywhere}.page .av-name-row{flex-wrap:wrap;gap:8px}.page .av-name-row h2{font-size:25px}.page .av-next-step{padding:18px;border-radius:16px}.page .av-owner{flex-wrap:wrap;gap:12px}.page .av-owner h3{font-size:14px}.page .av-next-step h3{font-size:22px}.page .av-next-step p,.page .av-family p{font-size:13px}.page .av-next-step .mon-actions{gap:12px;margin-top:20px}.page .av-next-step .mon-button{border-radius:13px;min-height:48px}.page .av-initial-due{font-size:11px;line-height:1.7}.page .av-family{padding-top:22px;margin-top:24px}.page .av-family-heading{flex-wrap:wrap;gap:12px}.page .av-activity li{font-size:13px}
  .monitoring.av-drawer[open],.rd-drawer[open]{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;height:90dvh;max-height:90dvh;border:0;border-radius:24px 24px 0 0;transform:none}
  .monitoring.av-drawer form{height:100%;max-height:none}.monitoring.av-drawer form>header{padding:22px 20px}.monitoring.av-drawer form>header h2{font-size:22px}.monitoring.av-drawer .mon-form{padding:20px}.monitoring.av-drawer form>footer{padding:16px 20px calc(16px + env(safe-area-inset-bottom))}.monitoring.av-drawer form>footer button{border-radius:13px}.monitoring.av-drawer::backdrop{background:#243b3038;backdrop-filter:blur(3px)}
  @media(min-width:700px){.page .av-queue{grid-template-columns:repeat(2,minmax(0,1fr))}.page .round-ui{max-width:980px;margin:auto}.page .rv-layout .rv-main{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(250px,.8fr);gap:20px;align-items:start}.page #safe-round-main{grid-column:1;grid-row:1/3}.page .rv-inbox{grid-column:2;margin:0}.page .rv-history-link{grid-column:2}.page #safe-round-banner:not(:empty){max-width:560px;margin-bottom:16px}.page .rv-resident-choices{max-height:52dvh}.page .av-detail{max-width:720px;margin:auto}.monitoring.av-drawer[open],.rd-drawer[open]{left:50%;right:auto;transform:translateX(-50%);width:min(680px,calc(100% - 48px))}}
  @media(prefers-reduced-motion:no-preference){.monitoring.av-drawer[open],.rd-drawer[open]{animation:phone-panel-in .24s ease-out}.monitoring.av-drawer.av-closing{animation:phone-native-out .16s ease-in forwards}@keyframes phone-native-out{to{translate:0 32px;opacity:0}}}
}
