/* app.css */
:root{--teal:#168577;--deep:#126358;--mint:#e6f5f0;--ink:#203c39;--muted:#6c817d;--line:#e1ebe7;--bg:#f5f8f6;--amber:#a66c12;--red:#b14343}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button{border:0;border-radius:10px;padding:11px 17px;background:var(--teal);color:white;font-weight:600}button:hover{filter:brightness(.96)}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #72c5b6;outline-offset:3px}button.secondary{background:white;color:var(--deep);border:1px solid var(--line)}button.small{padding:7px 12px;font-size:13px}.sidebar{position:fixed;width:235px;inset:0 auto 0 0;background:white;border-right:1px solid var(--line);padding:28px 20px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:24px;font-weight:700;letter-spacing:-.6px}.brand small{display:block;font-size:10px;letter-spacing:2px;color:var(--muted);margin-top:0}.brandmark{height:43px;width:43px;background:var(--mint);color:var(--teal);border-radius:13px;text-align:center;font-size:29px;position:relative}.brandmark span{font-size:18px;position:absolute;top:0;right:3px}.workspace{font-size:10px;letter-spacing:1.5px;color:var(--muted);margin:40px 12px 16px}nav button{background:none;color:var(--muted);display:flex;gap:12px;align-items:center;width:100%;text-align:left;margin:5px 0;font-size:14px}nav button.active{background:var(--mint);color:var(--deep)}nav .sym{font-size:19px;width:24px;text-align:center}.sidebar-foot{margin-top:auto;font-size:12px;color:var(--deep)}.sidebar-foot small{color:var(--muted);margin-left:13px}.dot{display:inline-block;width:7px;height:7px;background:var(--teal);border-radius:50%;margin-right:6px}.shell{margin-left:235px}header{display:flex;align-items:center;justify-content:space-between;background:white;padding:22px 36px;border-bottom:1px solid var(--line);gap:15px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:var(--muted)}h2{margin:2px 0;font-size:23px;font-weight:650;letter-spacing:-.5px}.header-controls{display:flex;gap:12px;align-items:center}select,input,textarea{border:1px solid var(--line);padding:11px;border-radius:9px;background:white;color:var(--ink);min-width:0}select{max-width:100%}.avatar{border-radius:50%;background:var(--mint);color:var(--teal);height:36px;width:36px;display:grid;place-items:center;font-size:12px;font-weight:700}.iconbutton{background:var(--bg);color:var(--teal);padding:7px 12px;font-size:22px}.demo-banner{display:flex;align-items:center;gap:12px;padding:9px 36px;background:#fff8e9;font-size:11px;color:#8a681d;flex-wrap:wrap}.demo-banner span{font-size:9px;font-weight:750;letter-spacing:1px}.demo-banner button{margin-left:auto;padding:3px 8px;color:#8a681d;background:none;text-decoration:underline;font-size:11px}main{padding:30px 36px;max-width:1450px;margin:auto}h1{font-size:30px;line-height:1.2;margin:0 0 8px;letter-spacing:-1px}p{margin:0 0 14px}.muted{color:var(--muted)}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.intro p{margin:0}.pill{border-radius:30px;background:var(--mint);color:var(--deep);font-size:11px;font-weight:600;padding:5px 10px;display:inline-block;white-space:nowrap}.pill.amber{background:#fff3d8;color:var(--amber)}.pill.red{background:#ffecec;color:var(--red)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:15px;padding:20px}.stat strong{font-size:31px;display:block;letter-spacing:-1px}.stat small{color:var(--muted);font-size:12px}.stat .label{font-size:12px;color:var(--muted)}.columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:23px}.card{border:1px solid var(--line);border-radius:17px;background:white;padding:24px;margin-bottom:22px;min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.card-head h3{font-size:17px;margin:0}.card-head small{color:var(--muted)}.resident{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.resident:last-child{border-bottom:0}.resident .info{flex:1;min-width:125px}.resident strong{display:block;font-size:14px}.resident small{color:var(--muted);font-size:12px}.initial{width:44px;height:44px;border-radius:13px;background:#edf5f0;display:grid;place-items:center;color:var(--deep);font-size:14px;font-weight:700}.progress{height:5px;width:105px;background:var(--line);border-radius:5px;margin-top:7px;overflow:hidden}.progress span{display:block;height:100%;background:var(--teal)}.event{display:flex;gap:13px;padding:14px 0;border-bottom:1px solid var(--line);align-items:flex-start}.event:last-child{border-bottom:0}.event strong{font-size:14px;display:block}.event small{display:block;color:var(--muted);font-size:12px}.datebox{background:var(--mint);border-radius:10px;padding:7px;text-align:center;min-width:46px;font-size:11px;color:var(--deep)}.datebox b{display:block;font-size:20px;line-height:1.3}.event .grow{flex:1;min-width:0}.hero{background:linear-gradient(115deg,#e2f3ec,#f2f9f4);border:1px solid #d5e9df;border-radius:18px;padding:26px;margin-bottom:23px;display:flex;gap:20px;align-items:center}.hero .initial{width:64px;height:64px;background:white;font-size:21px;flex-shrink:0}.hero h1{font-size:25px}.actions{display:flex;gap:9px;flex-wrap:wrap}.filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.filters input{flex:1;min-width:150px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:13px 10px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:1px}td small{display:block;color:var(--muted)}.task{display:flex;align-items:center;gap:14px;padding:15px 0;border-bottom:1px solid var(--line)}.task:last-child{border:0}.task .grow{flex:1}.task strong{font-size:14px;display:block}.task small{font-size:12px;color:var(--muted)}.task button{flex-shrink:0}.tick{width:30px;height:30px;background:var(--mint);color:var(--teal);border-radius:50%;display:grid;place-items:center}.vitals{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.vital{padding:16px;background:var(--bg);border-radius:12px}.vital strong{display:block;font-size:21px}.vital small{color:var(--muted);font-size:11px}.timeline{padding-left:18px;border-left:2px solid var(--line);margin-left:7px}.timeline .entry{position:relative;padding:0 0 20px 10px}.entry:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--teal);position:absolute;left:-23px;top:7px}.entry strong{font-size:14px}.entry small{display:block;color:var(--muted);font-size:11px}.photos{display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo-slot{background:var(--mint);border-radius:13px;padding:27px 14px;text-align:center;color:var(--deep);font-size:13px}.photo-slot span{font-size:28px;display:block}.photo-slot small{display:block;color:var(--muted);font-size:11px}.message{max-width:85%;padding:13px 16px;background:var(--bg);border-radius:14px;margin-bottom:13px;font-size:14px}.message.mine{margin-left:auto;background:var(--mint)}.message small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.compose{display:flex;gap:10px;margin-top:15px}.compose input{flex:1;width:100%}.empty{padding:28px;text-align:center;color:var(--muted)}.section-note{padding:12px 16px;background:var(--mint);color:var(--deep);border-radius:10px;font-size:12px;margin-bottom:20px}footer{font-size:10px;color:var(--muted);text-align:center;padding:20px}dialog{border:1px solid var(--line);border-radius:19px;padding:24px;width:min(520px,calc(100% - 28px));max-height:90vh;color:var(--ink);box-shadow:0 20px 100px #183e3830}dialog::backdrop{background:#183a3555;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:20px}.modal-head h2{font-size:21px}label.field{display:block;margin-bottom:15px;font-size:12px;font-weight:600}label.field input,label.field select,label.field textarea{display:block;width:100%;margin-top:6px;font-weight:400}.form-note{font-size:12px;color:var(--muted);margin-bottom:17px}.form-actions{display:flex;justify-content:flex-end;gap:10px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 22px;background:var(--deep);color:white;border-radius:12px;display:none;z-index:9;max-width:90vw;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#mobile-nav{display:none}@media(max-width:1100px){.sidebar{width:195px;padding:25px 14px}.shell{margin-left:195px}main{padding:24px}.columns{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:15px}header{padding:20px 24px}}@media(max-width:700px){.sidebar{display:none}.shell{margin:0}header{padding:16px 18px}header h2{font-size:20px}.eyebrow{font-size:8px}.header-controls{gap:7px}.header-controls select{font-size:12px;padding:8px}.avatar{display:none}.demo-banner{padding:9px 18px;font-size:10px;gap:5px}main{padding:22px 16px 65px}.intro{align-items:flex-start;gap:10px}.intro h1{font-size:25px}.intro p{font-size:12px}.stats{grid-template-columns:1fr 1fr}.stat strong{font-size:27px}.stat .label{font-size:11px}.card{padding:18px;border-radius:15px}.card-head{flex-wrap:wrap}.hero{padding:20px 16px}.hero h1{font-size:22px}.hero p{font-size:12px}.vitals{grid-template-columns:1fr 1fr}.vital strong{font-size:20px}.resident .progress{width:70px}.resident button{font-size:12px;padding:7px 10px}#mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:white;border-top:1px solid var(--line);padding:5px 3px calc(5px + env(safe-area-inset-bottom));z-index:3;overflow-x:auto}#mobile-nav button{flex:1;min-width:58px;display:flex;flex-direction:column;gap:1px;justify-content:center;text-align:center;font-size:9px;padding:5px;margin:0;border-radius:9px}#mobile-nav .sym{font-size:18px}.photos{gap:8px}.task strong{font-size:13px}.task button{font-size:11px;padding:9px}.compose{flex-wrap:wrap}footer{display:none}.intro button{font-size:12px;padding:9px 12px}.message{max-width:95%}#toast{bottom:85px}}
.care-photo{display:block;width:100%;max-width:330px;max-height:280px;object-fit:contain;background:var(--bg);border-radius:12px;margin:10px 0}table .care-photo{max-width:160px;max-height:130px}.filters label{font-size:12px;color:var(--muted)}.filters label input,.filters label select{margin-left:6px}select[hidden]{display:none!important}@media(max-width:700px){.header-controls{flex-wrap:wrap;justify-content:flex-end}.header-controls #staff-user{max-width:120px}.header-controls .iconbutton{display:none}}
.context-banner{border:1px solid #cce8df;background:linear-gradient(110deg,#e4f4ec,#f1faf5);border-radius:16px;padding:18px 22px;margin-bottom:24px;display:flex;flex-wrap:wrap;gap:16px;align-items:center}.context-label{flex:1;min-width:200px}.context-label strong{display:block;font-size:18px;margin-top:4px}.context-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.context-controls label{font-size:11px;color:var(--deep)}.context-controls input,.context-controls select{display:block;margin-top:4px}.context-banner>small{width:100%;color:var(--muted);font-size:11px}.entry-context{background:var(--mint);border:1px solid #d3ebe2;border-radius:12px;padding:12px 15px;margin-bottom:18px}.entry-context strong,.entry-context small{display:block}.entry-context small{font-size:11px;color:var(--muted);margin-top:3px}.photo-date-banner{padding:9px 12px;border-radius:9px;background:var(--mint);color:var(--deep);font-size:13px;font-weight:650;margin-bottom:14px}.patient-label{font-weight:650;color:var(--deep)}@media(max-width:700px){.context-banner{padding:16px;gap:12px}.context-controls{width:100%}.context-controls label{flex:1;min-width:125px}.context-controls input,.context-controls select{width:100%}.context-label strong{font-size:16px}}
.appointment-list{display:grid;gap:16px}.appointment-card{border:1px solid var(--line);border-radius:13px;padding:17px;min-width:0;background:#fff}.appointment-top{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.appointment-title{flex:1;min-width:140px;overflow-wrap:anywhere}.appointment-title strong{display:block;font-size:15px}.appointment-title small{display:block;color:var(--muted);font-size:12px}.appointment-details{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;margin:18px 0}.appointment-details div{min-width:0}.appointment-details dt{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.7px}.appointment-details dd{margin:3px 0 0;font-size:13px;overflow-wrap:anywhere;word-break:normal}.trip-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;background:var(--mint);padding:12px;border-radius:10px}.trip-summary small,.trip-summary strong{display:block;overflow-wrap:anywhere}.trip-summary small{font-size:10px;color:var(--muted)}.trip-summary strong{font-size:13px}.trip-total{color:var(--deep)}.trip-review{display:block;margin:7px 0;color:var(--muted);font-size:11px}.appointment-reminders{font-size:11px;color:var(--muted);margin:14px 0 10px}.appointment-actions{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:12px;margin-top:13px}.appointment-actions button{flex:0 1 auto;min-height:36px}.delay-alert{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}.delay-alert .grow{flex:1;min-width:160px}.delay-alert small{display:block;color:var(--muted);font-size:12px}.alert-banner{display:flex;flex-wrap:wrap;align-items:center;gap:12px;border:1px solid #f0d7a2;background:#fff6e5;padding:15px 20px;border-radius:12px;margin-bottom:22px;color:var(--amber)}.alert-banner span{flex:1;font-size:12px}@media(max-width:700px){.appointment-card{padding:14px}.appointment-details{gap:11px}.trip-summary{grid-template-columns:1fr 1fr}.appointment-actions button{flex:1 1 40%}.appointment-title{min-width:130px}}@media(min-width:701px) and (max-width:1100px){.trip-summary{grid-template-columns:1fr 1fr}}

.appointment-details{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
.stat-link{color:var(--ink);text-align:left;font-weight:400;transition:box-shadow .15s,border-color .15s}.stat-link:hover{border-color:#87cabb;box-shadow:0 4px 16px #16857710;filter:none}.stat-link:focus-visible{outline:3px solid #72c5b6}.stat-link .label{display:block}.assignment-context{width:100%;border-top:1px solid #cce8df;padding-top:11px;font-size:12px;color:var(--deep)}.scope-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:22px}.scope-controls span{flex:1;min-width:170px;font-size:13px;color:var(--muted)}.patient-detail-link{background:var(--mint);color:var(--deep);font-size:12px;width:100%;margin-top:12px;text-align:left;overflow-wrap:anywhere}.focused-detail{border:2px solid var(--teal);box-shadow:0 0 0 3px #e3f4ed}.detail-banner{background:var(--mint);border-left:3px solid var(--teal);padding:13px 17px;border-radius:10px;margin-bottom:20px}.detail-banner strong,.detail-banner small{display:block}.detail-banner small{color:var(--muted);font-size:12px;margin-top:4px}
.simple-context{display:flex;gap:14px;flex-wrap:wrap;align-items:center;background:white;border:1px solid var(--line);border-radius:14px;padding:15px 18px;margin-bottom:26px}.simple-context label{font-size:11px;color:var(--muted);min-width:150px}.simple-context label:first-child{flex:1}.simple-context select,.simple-context input{display:block;width:100%;margin-top:4px;padding:9px 12px}.simple-context label strong{display:block;color:var(--ink);font-size:16px;margin-top:5px}.simple-assignment{padding-left:18px;border-left:1px solid var(--line);max-width:210px}.simple-assignment small,.simple-assignment strong{display:block}.simple-assignment small{font-size:10px;color:var(--muted)}.simple-assignment strong{font-size:13px}.hub-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}.hub-heading h1{font-size:28px}.hub-heading p{font-size:14px;margin:7px 0 0}.launch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.launch-tile{background:white;border:1px solid var(--line);color:var(--ink);padding:24px 20px;min-height:125px;text-align:left;display:flex;align-items:center;gap:14px;border-radius:17px;transition:transform .15s,box-shadow .15s}.launch-tile:hover{filter:none;transform:translateY(-2px);border-color:#9bd3c5;box-shadow:0 7px 24px #143c3510}.tile-icon{display:grid;place-items:center;background:var(--mint);color:var(--teal);height:48px;width:48px;flex-shrink:0;border-radius:14px;font-size:24px}.tile-copy{flex:1;min-width:0}.tile-copy strong{font-size:16px;display:block}.tile-copy small{font-size:11px;font-weight:400;color:var(--muted);display:block;margin-top:6px;line-height:1.4}.tile-badge{border-radius:50%;min-width:28px;height:28px;background:var(--mint);color:var(--deep);display:grid;place-items:center;font-size:12px}.tile-arrow{color:#9cb5ad;font-size:26px}.section-heading{margin-bottom:22px}.back-button{background:none;color:var(--teal);padding:0;margin-bottom:17px;font-size:13px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:15px}.section-title h1{font-size:26px}.section-title p{margin:7px 0 0;font-size:12px}.subnav{margin-bottom:17px}.fold{border:1px solid var(--line);background:white;border-radius:14px;margin-bottom:14px;overflow:hidden}.fold>summary{cursor:pointer;padding:19px 20px;font-size:14px;font-weight:600;list-style:none;display:flex;align-items:center;gap:13px}.fold>summary:after{content:'+';margin-left:auto;color:var(--teal);font-size:22px;font-weight:400}.fold[open]>summary:after{content:'−'}.fold[open]>summary{border-bottom:1px solid var(--line)}.fold>summary::-webkit-details-marker{display:none}.fold>summary:focus-visible{outline:3px solid #72c5b6;outline-offset:-3px}.fold-body,.fold>table,.fold>.table-wrap,.fold>.card,.fold>.simple-row{margin:0;padding:20px}.fold>p,.fold>.empty{padding:20px}.fold-symbol{color:var(--teal);font-size:22px}.event-fold summary>span:nth-child(2){flex:1;min-width:0}.event-fold summary strong,.event-fold summary small{display:block}.event-fold summary small{color:var(--muted);font-size:11px;font-weight:400;margin-top:5px}.simple-row{display:flex;gap:15px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.simple-row>div{flex:1;min-width:0}.simple-row strong,.simple-row small{display:block}.simple-row small{color:var(--muted);font-size:12px;margin-top:4px}.row-icon{font-size:22px;color:var(--teal)}.report-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 25px}.demo-banner{font-size:10px;padding-top:7px;padding-bottom:7px}.hub-heading .pill{font-size:10px}@media(max-width:1100px){.launch-grid{grid-template-columns:1fr 1fr}.launch-tile{padding:21px 18px}.simple-assignment{padding-left:0;border:0;max-width:none}}@media(max-width:700px){.simple-context{padding:12px;gap:10px;margin-bottom:22px}.simple-context label{min-width:120px}.simple-context label:first-child{flex:1}.simple-context label:nth-child(2){flex:1}.simple-assignment{width:100%;display:flex;gap:8px;align-items:center}.hub-heading{display:block}.hub-heading h1{font-size:25px}.hub-heading>.pill{margin-top:12px}.launch-grid{gap:11px}.launch-tile{display:block;padding:17px 14px;min-height:150px;position:relative}.tile-icon{width:40px;height:40px;font-size:21px;margin-bottom:13px}.tile-copy strong{font-size:14px}.tile-copy small{font-size:10px;line-height:1.4}.tile-arrow,.tile-badge{position:absolute;right:12px;top:21px}.section-title{align-items:flex-start;flex-wrap:wrap}.section-title h1{font-size:24px}.section-title button{font-size:12px}.fold>summary{padding:17px 14px;gap:10px}.fold-body{padding:16px}.event-fold summary .pill{font-size:9px;white-space:normal}.simple-row button{font-size:12px;padding:9px 12px}.card{padding:18px}.fold>.card{padding:14px}.hub-heading p{font-size:12px}}
[hidden]{display:none!important}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{background:white;border:1px solid var(--line);border-radius:22px;padding:36px;width:min(440px,100%);box-shadow:0 15px 70px #183d3510}.login-card .brand{margin-bottom:34px}.login-card h1{font-size:29px}.login-card .field{margin-top:18px}.login-submit{width:100%;margin-top:12px;min-height:46px}.login-card p[role=alert],#form-error{color:#b14343;font-size:13px}.field input[type=checkbox]{width:auto;display:inline-block;margin-right:8px}.fold-body{padding:20px}.fold-body p{overflow-wrap:anywhere}.simple-context{display:flex;gap:14px;flex-wrap:wrap;align-items:center;background:white;border:1px solid var(--line);border-radius:14px;padding:15px 18px;margin-bottom:26px}.simple-context label{font-size:11px;color:var(--muted);min-width:150px}.simple-context label:first-child{flex:1}.simple-context select,.simple-context input{display:block;width:100%;margin-top:4px;padding:9px 12px}.simple-assignment{font-size:12px;max-width:220px}.simple-assignment small,.simple-assignment strong{display:block}#offline-banner{background:#fff3d8;color:#996c1c;padding:10px 25px;text-align:center;font-size:12px}.error-panel{color:#b14343}#print-area{display:none}@media print{body>*{display:none!important}#print-area{display:block!important;background:white;color:#000;padding:20px}.fold{break-inside:avoid}.sidebar,#mobile-nav,button{display:none!important}details>summary{display:block}details:not([open])>*{display:block!important}.care-photo{max-height:300px}}@media(max-width:700px){.header-controls #account-name{font-size:10px;max-width:100px;overflow-wrap:anywhere}.simple-context{padding:12px;gap:10px}.simple-context label{flex:1;min-width:110px}.simple-assignment{width:100%}.login-card{padding:26px}.simple-row{flex-wrap:wrap}#mobile-nav button{min-height:48px;font-size:11px}}
/* v0.13: calm task-based navigation, predictable spacing and visible unread alerts. */
body{background:#f4f7f6;color:#203d36;font-size:15px;line-height:1.5}h1,h2,h3,p{overflow-wrap:anywhere}button,input,select,textarea{font:inherit}button{min-height:44px}button:focus-visible,a:focus-visible{outline:3px solid #51b6a0;outline-offset:3px}.shell main{max-width:1080px;margin:auto;width:100%;padding:28px 32px 48px}.shell header{padding:20px 32px;background:#fff;border-bottom:1px solid #e1ebe6}.header-controls{gap:12px}.iconbutton{position:relative;min-width:44px}.unread-count{position:absolute;top:-5px;right:-7px;min-width:22px;height:22px;padding:1px 5px;border-radius:20px;background:#c34a45;color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;border:2px solid white}.notice-strip{background:#e4f3ec;border-bottom:1px solid #c8e4d7;padding:12px 32px;display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:13px}.notice-strip button{background:transparent;color:#125f50;padding:6px 10px;white-space:nowrap}.simple-context{box-shadow:none;border:1px solid #dde7e2;background:#fff;padding:16px 20px;margin-bottom:24px;gap:18px}.simple-context input,.simple-context select{min-height:44px;background:#f7faf8;border:1px solid #dce6e1;border-radius:9px;font-size:14px;color:#203d36}.simple-assignment{border:0;padding-left:0}.hub-heading h1,.section-title h1{font-size:27px;letter-spacing:-.6px}.hub-heading .eyebrow{display:block;margin-bottom:6px}.primary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.launch-tile{box-shadow:none;padding:24px;min-height:120px;border-radius:15px;gap:16px}.tile-copy strong{font-size:17px;line-height:1.3}.tile-copy small{font-size:13px;line-height:1.5;margin-top:6px}.tile-icon{background:#e8f5ed;border-radius:12px}.manage-link{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #dee8e2;color:#355a4c;border-radius:12px;width:100%;padding:16px 20px;margin-top:24px;text-align:left;font-weight:500}.manage-link span{font-size:23px}.section-title{margin-top:0}.fold{margin-bottom:12px;border-color:#dde7e2}.fold>summary{padding:18px 20px;font-size:15px}.fold summary>span:first-child{min-width:0;flex:1}.fold summary strong,.fold summary small{display:block}.fold summary small{font-size:12px;color:#6c8077;font-weight:400;margin-top:4px}.fold-body{padding:20px}.actions,.form-actions,.report-actions{display:flex;flex-wrap:wrap;gap:10px}.appointment-details dd{font-size:15px}.trip-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}.trip-summary small{font-size:12px}.trip-summary strong{font-size:16px}.simple-row{background:#fff;padding:16px;border-radius:10px;margin-bottom:8px}.notification-row{display:flex;align-items:flex-start;gap:14px;background:#fff;border:1px solid #e0e8e3;border-radius:12px;padding:18px;margin-bottom:10px}.notification-row>div{flex:1;min-width:0}.notification-row strong,.notification-row small{display:block}.notification-row small{color:#698075;font-size:12px;margin-top:4px}.notification-row p{font-size:14px;color:#556e62;margin:8px 0 0}.notice-dot{height:9px;width:9px;flex-shrink:0;border-radius:50%;background:#cdd9d2;margin-top:7px}.is-unread{border-color:#96cbb7;background:#f5fcf8}.is-unread .notice-dot{background:#168577}.phone-notice-settings{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:18px;background:#edf5f0;border:1px solid #d8e8df;border-radius:12px;margin-bottom:22px}.phone-notice-settings>div{flex:1;min-width:180px}.phone-notice-settings strong,.phone-notice-settings small{display:block}.phone-notice-settings small{font-size:13px;color:#62796c;margin-top:3px}dialog{width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #d8e6dd;border-radius:18px}dialog::backdrop{background:#122b2366}.field{font-size:14px;display:block;margin-bottom:16px}.field input,.field select,.field textarea{min-height:44px;width:100%;padding:11px 12px;border:1px solid #d6e3db;border-radius:9px;box-sizing:border-box}.field input[type=checkbox]{width:20px;min-height:20px}.care-photo{width:100%;max-height:360px;object-fit:contain;background:#f0f4f1;border-radius:10px;display:block;margin-bottom:12px}.photo-date-banner{font-size:16px;font-weight:600;padding:14px 18px;background:#e4f3eb;border-radius:12px;margin-bottom:18px}#mobile-nav{padding-bottom:env(safe-area-inset-bottom)}#toast{max-width:calc(100vw - 28px);font-size:14px;bottom:85px}.compose{display:flex;gap:8px}.compose input{flex:1;min-width:0;min-height:46px;font-size:16px}.message small{display:block;font-size:11px}footer{font-size:11px;color:#778d80}.back-button{min-height:32px;padding:0}
@media(max-width:700px){.shell main{padding:20px 16px 100px}.shell header{padding:14px 16px}.shell header h2{font-size:18px}.shell header .eyebrow{font-size:8px}.header-controls #account-name{display:none}.header-controls{gap:8px}.header-controls #logout{font-size:11px;padding:6px 9px}.notice-strip{padding:10px 16px;font-size:12px}.notice-strip span{line-height:1.5}.notice-strip button{font-size:12px;padding:6px}.simple-context{padding:14px;gap:10px;margin-bottom:20px}.simple-context label{min-width:100px}.simple-context label:first-child{flex:1 1 100%}.simple-context .simple-assignment{width:auto;font-size:12px;display:block}.simple-assignment small{font-size:10px}.simple-assignment strong{font-size:13px}.hub-heading h1,.section-title h1{font-size:24px}.hub-heading{margin-bottom:20px}.hub-heading p{font-size:14px}.hub-heading>.pill{margin-top:10px}.primary-grid{grid-template-columns:1fr;gap:12px}.launch-grid:not(.primary-grid){grid-template-columns:1fr;gap:10px}.launch-tile{display:flex;align-items:center;padding:18px;min-height:88px}.tile-icon{width:42px;height:42px;margin-bottom:0;font-size:22px}.tile-copy strong{font-size:16px}.tile-copy small{font-size:12px}.tile-arrow{position:static;font-size:25px}.fold>summary{padding:16px;gap:8px}.fold summary strong{font-size:14px}.fold summary small{font-size:11px}.fold-body{padding:16px}.trip-summary{gap:6px;padding:10px}.trip-summary small{font-size:10px}.trip-summary strong{font-size:14px}.notification-row{padding:15px;flex-wrap:wrap;gap:10px}.notification-row>div{flex:1 1 70%}.notification-row button{margin-left:19px}.phone-notice-settings{padding:16px}.phone-notice-settings>div{flex-basis:100%}.phone-notice-settings button{font-size:13px;flex:1}.appointment-details{grid-template-columns:1fr}.appointment-details dd{font-size:14px}.form-actions button{flex:1}.report-actions button{flex:1 1 45%;font-size:13px}dialog{padding:20px}.section-title>button{width:100%;margin-top:8px}#mobile-nav button{font-size:12px;min-height:52px}.simple-row{gap:10px}.simple-row button{font-size:12px}.manage-link{margin-top:20px}}
/* Caregiver workflow: one clear sequence, six large task boxes. */
.shift-status{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px;background:#e9f5ee;border:1px solid #cce4d6;border-radius:16px;margin-bottom:20px}.shift-status h1{font-size:25px;margin:4px 0}.shift-status p{font-size:14px;margin:5px 0;color:#567565}.shift-status button{min-width:150px;background:#168577;color:white;font-size:17px;padding:14px 24px}.caregiver-patient{display:flex;gap:20px;align-items:center;padding:18px 20px;background:white;border:1px solid #dce7df;border-radius:14px;margin-bottom:20px}.caregiver-patient label{flex:1;font-size:13px;color:#587262}.caregiver-patient select{width:100%;display:block;margin-top:6px;min-height:48px;padding:10px 12px;font-size:17px;border:1px solid #cddfd2;border-radius:10px;background:#f6faf7;color:#244a35}.auto-room{min-width:100px;border-left:1px solid #d8e7dc;padding-left:20px}.auto-room small,.auto-room strong{display:block}.auto-room small{font-size:12px;color:#6e8376}.auto-room strong{font-size:22px;color:#264d36}.care-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.care-action{display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;background:#fff;border:1px solid #dae6de;border-radius:15px;min-height:140px;padding:22px;color:#264d38}.care-action:hover{background:#f0faf4;filter:none;border-color:#8bc6a8}.care-action-icon{font-size:26px;display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#e7f5ec;color:#168577}.care-action strong{font-size:18px}.care-action>span:last-child{font-size:12px;color:#718b7c;font-weight:400}.capture-time{font-size:12px;color:#708679;margin:14px 0 24px}.caregiver-live-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}.caregiver-live-grid .card{margin:0;min-width:0}.caregiver-live-grid .card p,.instruction-note p,.live-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65}.instruction-note{background:#f2f8f4;border-left:3px solid #84bea0;padding:13px 15px;border-radius:8px;margin-bottom:14px}.instruction-note p{margin:7px 0}.instruction-note small,.live-message small{font-size:11px;color:#6d8577}.live-message{padding:10px 0;border-bottom:1px solid #e0eae3}.live-message p{margin:0 0 5px}.shift-off-wrap{margin:24px 0}.shift-off-wrap button{width:100%;min-height:54px;border:1px solid #d6b9ac;background:#fff8f4;color:#955136;font-size:17px}.caregiver-live-grid .card-head h3{font-size:16px}@media(max-width:700px){.shift-status{padding:18px;align-items:flex-start;flex-wrap:wrap}.shift-status h1{font-size:23px}.shift-status button{width:100%;min-height:54px}.caregiver-patient{padding:16px;gap:12px}.auto-room{padding-left:14px;min-width:65px}.auto-room strong{font-size:20px}.care-action-grid{grid-template-columns:1fr 1fr;gap:12px}.care-action{min-height:135px;padding:17px;gap:8px}.care-action strong{font-size:16px}.care-action-icon{height:40px;width:40px;font-size:24px}.caregiver-live-grid{grid-template-columns:1fr;gap:14px}}
/* Incharge mirrors the caregiver sequence, with review and coordination actions. */
.incharge-patient{flex-wrap:wrap}.incharge-assigned{padding-left:20px;border-left:1px solid #d8e7dc;min-width:160px}.incharge-assigned small,.incharge-assigned strong{display:block}.incharge-assigned small{font-size:12px;color:#6e8376}.incharge-assigned strong{font-size:16px;margin:4px 0 8px}.incharge-assigned button{min-height:34px;padding:6px 10px;font-size:12px}.incharge-date{flex:0 1 150px!important}.incharge-date input{width:100%;min-height:44px;padding:8px;border:1px solid #cddfd2;border-radius:9px;color:#244a35}.incharge-attention{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.incharge-attention button{background:#fff;border:1px solid #dce7df;color:#315640;padding:14px;border-radius:12px;text-align:left;font-weight:400}.incharge-attention strong{display:block;font-size:24px;font-weight:700}.incharge-attention span{font-size:12px;color:#6a8274}.incharge-secondary{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.incharge-secondary button{flex:1;text-align:left;background:#fff;border:1px solid #dce7df;color:#315640;padding:15px 18px;border-radius:12px;font-size:14px}.instruction-note .actions{margin-top:12px}.incharge-patient+ .incharge-attention{margin-top:0}@media(max-width:700px){.incharge-patient>label:first-child{flex-basis:100%}.incharge-assigned{flex:1;min-width:130px;padding-left:14px}.incharge-date{flex-basis:100%!important}.incharge-attention{gap:8px}.incharge-attention button{padding:12px 10px}.incharge-attention strong{font-size:22px}.incharge-attention span{font-size:11px;line-height:1.4;display:block}.incharge-secondary{display:grid;grid-template-columns:1fr;gap:10px}.incharge-patient .auto-room{min-width:75px}}
/* v0.15 touch-friendly admin and incharge workspace */
.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}.admin-tile{display:flex;align-items:center;gap:14px;text-align:left;min-height:136px;padding:22px;border:1px solid #d5e8e4;border-radius:20px;background:#fff;color:#163c38;box-shadow:0 6px 20px #163c3808}.admin-tile:nth-child(2){background:#eff6ff}.admin-tile:nth-child(3){background:#f3efff}.admin-tile:nth-child(4){background:#fff5e9}.admin-tile:nth-child(5){background:#fff0f3}.admin-tile:nth-child(6){background:#eaf8f0}.admin-tile small,.admin-tile strong{display:block}.admin-tile strong{font-size:19px;line-height:1.35;margin-top:5px}.admin-tile b{margin-left:auto;background:#fff;border-radius:14px;padding:10px;font-size:20px}.admin-icon{font-size:28px;width:46px;flex-shrink:0}.patient-search{background:#fff;padding:16px;border-radius:16px;border:1px solid #d5e8e4;margin-bottom:18px}.patient-search label{display:block;font-weight:700;margin-bottom:8px}.patient-search input{width:100%;min-height:50px}.patient-banner{width:100%;display:flex;align-items:center;gap:14px;min-height:84px;margin:10px 0;padding:18px;background:#fff;color:#173e38;border:1px solid #d5e8e4;border-radius:16px;text-align:left}.patient-banner strong{font-size:18px}.patient-banner small{display:block;margin-top:6px;color:#58706a}.patient-banner>span:last-child{margin-left:auto}.care-audit{padding:18px;margin-bottom:14px;border:1px solid #dbe9e5;border-radius:14px}.pending-red{background:#fff2f2!important;border:1px solid #edb4b4!important;color:#982f33}.pending-red .pill{background:#ffe0e0;color:#92262b}.remark{border-left:3px solid #168577;padding:10px 14px;margin:10px 0;background:#f3f9f7;border-radius:8px}.audit-photo{display:block;max-width:100%;width:320px;max-height:280px;object-fit:contain;border-radius:12px;margin:14px 0;background:#f1f5f4}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}.shared-record{padding:14px;background:#eef7f4;border:1px solid #cce1d9;border-radius:12px}.message p{margin:5px 0}.message-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.message-tabs button{min-height:48px}.message-tabs button[aria-pressed=true]{background:#168577;color:#fff}.ledger-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e3eae7;flex-wrap:wrap}.ledger-row small{display:block;margin:6px 0}.ledger-row>strong{margin-left:auto}.ledger-total{display:flex;justify-content:space-between;gap:12px;padding:20px;background:#eaf7f1;border-radius:12px;margin-top:16px;font-size:18px}.payment-patient summary{min-height:86px;gap:12px}.touch-check-list{display:grid;gap:10px;margin:14px 0}.touch-check{display:flex;align-items:center;gap:18px;min-height:86px;padding:18px;border:1px solid #cddfd8;border-radius:14px;cursor:pointer;background:#fff}.touch-check input{width:30px;height:30px;accent-color:#168577;flex-shrink:0}.touch-check:has(input:checked){background:#e3f5ed;border:2px solid #168577}.touch-check strong{font-size:18px}.touch-check small{display:block;margin-top:6px}.touch-check[hidden]{display:none}.wide-submit{width:100%;min-height:54px;font-size:18px}.process-list{padding-left:22px}.process-list li{padding:10px}.care-audit small,.remark small{display:block;color:#546b65}.filters label{display:flex;flex-direction:column;gap:8px}.report-actions{flex-wrap:wrap}.compose input{min-width:0}.patient-search-results:empty{display:none}
@media(max-width:600px){.admin-grid{grid-template-columns:1fr;gap:12px}.admin-tile{min-height:100px;padding:18px}.admin-tile strong{font-size:18px}.patient-banner{flex-wrap:wrap}.ledger-total{flex-wrap:wrap}.payment-patient summary{flex-wrap:wrap}.admin-icon{width:34px}.care-audit{padding:14px}.message-tabs button{flex:1}.simple-row{flex-wrap:wrap}.filters button{min-height:48px}.touch-check{min-height:90px}}
/* Staff leave, attendance and payroll */
.sidebar #desktop-nav{overflow-y:auto;min-height:0;flex:1;padding-bottom:18px}.sidebar .sidebar-foot{position:static;margin-top:auto;flex-shrink:0;padding-top:12px}.hr-home{margin-top:28px}.hr-info{background:#eaf6f1;border:1px solid #cfe6db;border-radius:14px;padding:16px;line-height:1.65;margin-bottom:20px;color:#264c40}.hr-stats{display:flex;gap:12px;margin:18px 0}.hr-stats span{display:flex;flex:1;flex-direction:column;padding:16px;background:white;border:1px solid #dce9e3;border-radius:14px}.hr-stats b{font-size:26px;color:#168577}.hr-request small{display:block}.salary-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:16px 0}.salary-summary span{padding:14px;background:#f0f7f4;border-radius:12px;font-size:13px}.salary-summary strong{display:block;font-size:20px;margin-top:8px}.hr-warning{padding:14px;background:#fff1e8;color:#86431a;border-radius:12px}.hr-table-wrap{max-width:100%;overflow-x:auto}.hr-table{width:100%;border-collapse:collapse;min-width:680px;font-size:13px}.hr-table th,.hr-table td{padding:12px;text-align:left;border-bottom:1px solid #dce7e2;vertical-align:top}.hr-table th{background:#e9f4ef;color:#214e3f}.hr-table small{display:block;margin-top:6px}.hr-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:18px 0}.hr-date-check{display:flex;align-items:center;justify-content:center;position:relative;min-height:52px;border:1px solid #cddfd5;border-radius:10px;cursor:pointer}.hr-date-check input{position:absolute;opacity:0;width:100%;height:100%;inset:0;cursor:pointer}.hr-date-check:has(input:checked){background:#168577;color:white;border-color:#168577}.hr-date-check:has(input:focus-visible){outline:3px solid #79bdb1;outline-offset:2px}.hr-date-check span{pointer-events:none;font-weight:700}.hr-request .fold-body button{min-height:46px;margin:5px}.hr-home .launch-grid{margin-top:14px}
@media(max-width:700px){#mobile-nav{overflow-x:auto;justify-content:flex-start}#mobile-nav button{min-width:68px;flex:1;white-space:nowrap}.salary-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-date-grid{gap:6px}.hr-date-check{min-height:48px}.hr-request summary{flex-wrap:wrap}.hr-stats{gap:8px}.hr-stats span{padding:12px}}
@media print{.hr-table-wrap{overflow:visible}.hr-table{min-width:0;font-size:9px}.hr-table th,.hr-table td{padding:5px}.hr-table tr{break-inside:avoid}}

/* blue-theme.css */
/* Multicare v0.17 — shared blue theme and readable layouts for every role. */
:root{color-scheme:dark;--teal:#277de0;--deep:#fff;--mint:#16477d;--ink:#fff;--muted:#d4e3f7;--line:#34547c;--bg:#081e3e;--amber:#fff;--red:#fff}
body{background:#081e3e;color:#fff}h1,h2,h3,h4,strong,label,button,a{color:#fff}p,small,.muted,.eyebrow,.workspace,.brand small,.sidebar-foot,.sidebar-foot small,.capture-time,.section-note,.form-note,.empty,.tile-copy small,.tile-arrow,.simple-row small,.patient-banner small,.touch-check small,.care-audit small,.remark small{color:#dbe9fc}small{line-height:1.55}a{text-decoration-color:#b6d8ff}footer{color:#d5e5fa}
.sidebar,header,.login-card,dialog{background:#0c2951;color:#fff;border-color:#34547c}.brandmark{background:#1f61a4;color:#fff}.brandmark span{color:#fff}.dot,.notice-dot{background:#74baff}.sidebar nav button{color:#e2edfc}.sidebar nav button.active,#mobile-nav button.active{background:#205fa1;color:#fff}.sidebar #desktop-nav{scrollbar-color:#4779ac #0c2951}#mobile-nav{background:#0c2951;border-color:#34547c}#mobile-nav button{color:#d9e8fb}
.card,.patient-search,.patient-banner,.fold,.launch-tile,.care-action,.caregiver-patient,.simple-context,.context-banner,.entry,.resident,.stat,.vital,.care-audit,.appointment-card,.phone-notice-settings,.notification-row,.touch-check{background:#102f58;color:#fff;border-color:#34547c;box-shadow:0 5px 18px #00000010}.admin-grid .admin-tile:nth-child(n){background:linear-gradient(120deg,#123963,#194d82);border-color:#3c6591;color:#fff}.admin-tile strong,.admin-tile small,.admin-tile .tile-arrow{color:#fff}.admin-tile b{background:#0b2a50;color:#fff}.admin-tile .admin-icon{color:#baddff}.admin-tile:nth-child(3n){background:linear-gradient(120deg,#132e60,#224f8f)}
button,.login-submit,.wide-submit{background:#2677ca;color:#fff}button.secondary,.back-button,.manage-link,.patient-detail-link,.incharge-secondary button,.report-actions button{background:#174879;color:#fff;border-color:#4774a1}button:disabled{opacity:.55;cursor:not-allowed}.iconbutton{background:#164271;color:#fff}.launch-tile .tile-icon,.care-action-icon,.initial,.avatar,.row-icon,.tile-badge{background:#21588e;color:#fff}.care-action strong,.care-action span,.launch-tile strong{color:#fff}.incharge-attention button{background:#123963;color:#fff;border-color:#3a608c}.incharge-attention span{color:#dfecff}.shift-status,.hr-info,.entry-context,.instruction-note,.photo-date-banner,.photo-slot,.info,.detail-banner,.assignment-context{background:#143c6b;color:#fff;border-color:#3b6796}.shift-status p,.instruction-note p,.instruction-note small,.shift-status .eyebrow{color:#e2eeff}
input,select,textarea,.caregiver-patient select,.simple-context select{background:#091f40;color:#fff;border-color:#4b709b}input::placeholder,textarea::placeholder{color:#c3d5eb;opacity:1}input:focus,select:focus,textarea:focus{outline:2px solid #80baff;outline-offset:2px}.filters select,.filters input{max-width:100%}.field{min-width:0}.family-verify{display:flex;align-items:flex-start;gap:12px;margin:18px 0}.family-verify input{width:24px;height:24px;flex-shrink:0}.form-actions{gap:12px;flex-wrap:wrap}.modal-head{border-color:#3d5d86}dialog::backdrop{background:#031024bf}
.pill{background:#1a5792;color:#fff}.pill.amber,.pill.red{background:#b3243b;color:#fff}.pending-red,.delay-alert,.error-panel,.error-panel:empty,.hr-warning{background:#a71f36!important;color:#fff!important;border-color:#e27c8c!important}.pending-red *, .delay-alert *, .error-panel *, .hr-warning *{color:#fff!important}.pending-red .pill{background:#7e1024;color:#fff}.pending-red button{background:#721a2d!important;border-color:#eea0ad!important;color:#fff!important}.remark,.shared-record,.ledger-total,.salary-summary span,.hr-stats span,.live-message,.trip-summary,.trip-review{background:#153f6c;border-color:#3e658f;color:#fff}.message{background:#12385f;border-color:#3e658f;color:#fff}.message.mine{background:#1b548e}.message small{color:#dfebfc}.ledger-row,.simple-row,.notification-row,.care-audit,.card-head,.fold summary,.fold-body{border-color:#3a5a80}.hr-table th{background:#1b4d7e;color:#fff}.hr-table td,.hr-table th{border-color:#3a5a80}.hr-table td{color:#fff}.hr-date-check{border-color:#5275a0;background:#12365d;color:#fff}.hr-date-check:has(input:checked){background:#267ad0;color:#fff}.touch-check:has(input:checked){background:#1b5184;border-color:#84bfff}.notice-strip,#notification-banner,#app-update-banner,.demo-banner{background:#17406c;color:#fff;border-color:#416b99}#offline-banner{background:#a71f36;color:#fff}#toast{background:#2868a9;color:#fff;border:1px solid #80baff}.unread-count{background:#bd2843;color:#fff}.message-tabs button[aria-pressed=true]{background:#2b7bc9;color:#fff}#login-error:not(:empty),#form-error:not(:empty){background:#a71f36;padding:14px;border-radius:10px;color:#fff}
.patient-directory{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.patient-card{padding:24px;min-width:0}.patient-card-header{display:flex;align-items:flex-start;gap:16px}.patient-card-header>.initial{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center}.patient-card-title{flex:1;min-width:0}.patient-card-title h2{margin:0 0 7px;line-height:1.35;font-size:22px;word-break:normal;overflow-wrap:break-word;letter-spacing:0}.patient-card-title p{margin:4px 0;line-height:1.5}.patient-card-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:18px}.patient-card-actions button{min-height:48px;margin:0;white-space:normal}.linked-family{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0;padding:14px;background:#153f6a;border:1px solid #3b638e;border-radius:12px}.linked-family strong{min-width:0;overflow-wrap:anywhere}.linked-label{color:#d2e5ff;font-size:13px}.linked-family button{margin-left:auto;min-height:42px}.linked-family>span{overflow-wrap:anywhere}.statement-preview{min-width:0}.statement-preview p{overflow-wrap:anywhere}.statement-preview .ledger-row>span{flex:1;min-width:0}.fold summary{min-width:0;gap:12px;align-items:center;flex-wrap:wrap}.fold summary>span:not(.initial){min-width:0}.fold summary strong,.fold summary small{overflow-wrap:break-word;word-break:normal}.payment-patient summary>.initial{flex:0 0 44px;width:44px}.payment-patient summary>span:nth-child(2){flex:1;min-width:160px}.payment-patient summary strong{font-size:18px}.patient-banner>span:nth-child(2){flex:1;min-width:0}.patient-banner .initial{flex:0 0 44px;width:44px}.ledger-row>div{flex:1;min-width:170px}.section-title{min-width:0;gap:16px;flex-wrap:wrap}.section-title>div{min-width:0;flex:1}.section-title h1{overflow-wrap:break-word;line-height:1.3}.section-title>button{flex-shrink:0}.simple-row>div{min-width:0}.initial{flex-shrink:0}.report-actions,.filters{gap:10px}.report-actions button,.filters button{white-space:normal;min-height:44px}.hr-table-wrap{overscroll-behavior-x:contain}[hidden]{display:none!important}
@media(max-width:600px){.patient-card{padding:18px}.patient-card-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.patient-card-actions button{padding:11px 8px;font-size:13px}.patient-card-title h2{font-size:20px}.linked-family{align-items:flex-start;flex-direction:column}.linked-family button{margin-left:0;width:100%}.admin-tile strong{overflow-wrap:normal}.payment-patient summary>span:nth-child(2){min-width:120px}.section-title>button{width:100%}.ledger-total{align-items:flex-start}.sidebar{display:none}.family-verify{font-size:14px}}

/* Override older screen-specific colors as well as base component styles. */
.shell header{background:#0c2951;border-color:#34547c;color:#fff}.shell header h2{color:#fff}.notice-strip button,.demo-banner button{color:#fff;background:#21578d;border:1px solid #5b84ad}.simple-row,.is-unread{background:#12365e;color:#fff}.is-unread{border-color:#7faee2}.simple-context input,.simple-context select,.caregiver-patient select,.incharge-date input{background:#091f40;color:#fff;border-color:#4b709b}.fold summary small,.notification-row small,.notification-row p,.phone-notice-settings small,.caregiver-patient label,.auto-room small,.auto-room strong,.incharge-assigned small,.live-message small,.hr-stats b,.care-action>span:last-child{color:#e0ecfc}.fold>summary:after,.fold-symbol,.tick{color:#fff}.care-action:hover{background:#194676;border-color:#79ace0}.shift-status button,.shift-off-wrap button{background:#1e64a9;border-color:#5481af;color:#fff}.hero .initial{background:#21588e;color:#fff}.notification-row.is-unread{background:#164576}.simple-context{border-color:#34547c}.simple-assignment strong,.simple-context label{color:#fff}.touch-check input{accent-color:#6cb0ff}button,.login-submit,.wide-submit{background-color:#2169b2}.notification-row .secondary{background:#1c5289}.patient-card-actions button{background:#194d81}

input:-webkit-autofill{-webkit-text-fill-color:#fff;-webkit-box-shadow:0 0 0 1000px #091f40 inset;caret-color:#fff}.audit-photo{background:#0b2445}
@media print{:root{color-scheme:light}#print-area,#print-area *{color:#111!important;background:#fff!important;border-color:#ccc!important;box-shadow:none!important}#print-area th{background:#e9eef5!important}.hr-table-wrap{overflow:visible}}

/* directory.css */
.directory-count-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.directory-count{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:22px;text-align:left;border:1px solid #cbddeb;border-radius:16px;background:#fff;color:#173657;box-shadow:0 4px 16px #18334f06}.directory-count>strong{font-size:36px;line-height:1.15;color:#175da5}.directory-count>span{font-size:17px;font-weight:650}.directory-count small{font-size:13px;color:#52657a;line-height:1.6}.directory-gender-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.directory-gender-counts>button,.directory-gender-counts>span{display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding:18px;background:#edf4fb;color:#173657;border:1px solid #cbddeb;border-radius:12px;text-align:left}.directory-gender-counts strong{font-size:27px;line-height:1.2}.directory-gender-counts span{color:#173657}
.directory-filters{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;background:#fff;border:1px solid #d9e2eb;border-radius:15px;padding:20px;margin:20px 0 12px}.directory-filters label{display:flex;flex-direction:column;gap:8px;flex:1 1 140px;min-width:0;font-size:14px}.directory-filters .directory-search{flex:2 1 260px}.directory-filters select,.directory-filters input{width:100%;box-sizing:border-box;min-width:0}.directory-filters>button{min-height:48px}.directory-card-grid,.directory-bed-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:16px}.directory-card-grid>.card,.directory-bed-grid>.card{margin:0;min-width:0}.directory-card-grid h2,.directory-bed-grid h2{font-size:21px;line-height:1.5;margin:14px 0 12px;overflow-wrap:anywhere}.directory-card-grid small{display:block;line-height:1.65}.directory-card-grid p{line-height:1.7;overflow-wrap:anywhere}.directory-floor{display:inline-block;padding:6px 11px;background:#edf4fb;color:#295679;border-radius:8px;font-size:12px;line-height:1.5}.directory-placement{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.directory-placement>span{display:flex;flex-direction:column;gap:7px;flex:1;min-width:85px;padding:13px;background:#f1f5f9;border-radius:10px;color:#52657a;font-size:13px}.directory-placement strong{font-size:17px;color:#173657;overflow-wrap:anywhere}.directory-bed-status{display:block;margin:14px 0}.bed-available{border-left:5px solid #22814b!important}.bed-available .directory-bed-status{color:#176b3b}.bed-conflict,.bed-check{border-left:5px solid #b3243b!important}.bed-conflict .directory-bed-status,.bed-check .directory-bed-status{color:#a71f36}.bed-occupied{border-left:5px solid #175da5!important}.directory-bed>button{display:block;min-height:46px;width:100%;margin:8px 0;text-align:left;white-space:normal}.directory-bed>small{display:block;margin-top:12px}.directory-family h3{font-size:20px;line-height:1.5;margin:7px 0 18px}.directory-family-name{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:15px;border-radius:10px;background:#edf4fb;color:#174c80;border:1px solid #bfd5eb;font-size:18px;font-weight:650;line-height:1.5;margin-top:8px}.directory-family-name>span{font-size:25px}.directory-family-header{margin-bottom:18px}.directory-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 24px}.directory-tabs button{min-height:46px;padding:12px 16px;white-space:normal}.directory-tabs button[aria-pressed=true]{background:#175da5;color:#fff;border-color:#175da5}.directory-tabs button[aria-pressed=false]{background:#fff;color:#174c80;border:1px solid #bfd5eb}.directory-whatsapp{padding:24px;border:1px solid #d2e3d9;border-radius:15px;background:#f0f8f3;margin:26px 0}.directory-whatsapp p{color:#315d43;margin:0 0 14px}.directory-whatsapp .whatsapp-button{margin:0;min-height:48px;padding:13px 20px}.directory-no-results{padding:28px;text-align:center;color:#52657a;background:#fff;border:1px dashed #bdcfe0;border-radius:14px}.directory-bed-grid [hidden],.directory-card-grid [hidden]{display:none!important}
@media(max-width:600px){.directory-count-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.directory-count{padding:18px}.directory-count>span{font-size:16px}.directory-count>strong{font-size:31px}.directory-count-grid>.directory-count:last-child:nth-child(3){grid-column:1/-1}.directory-gender-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-filters{padding:16px;gap:12px}.directory-filters label{flex-basis:calc(50% - 12px)}.directory-filters .directory-search{flex-basis:100%}.directory-filters>button{width:100%}.directory-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.directory-tabs button{margin:0}.directory-card-grid,.directory-bed-grid{grid-template-columns:minmax(0,1fr)}.directory-whatsapp{padding:20px}.directory-whatsapp .whatsapp-button{display:flex;text-align:center}}

/* comfort.css */
/* v0.19: calm milky background, blue controls and clear red pending work. */
:root{color-scheme:light;--teal:#175da5;--deep:#173657;--mint:#edf4fb;--ink:#18334f;--muted:#52657a;--line:#d9e2eb;--bg:#f7f8f5;--amber:#9c2335;--red:#a71f36}
body{background:#f7f8f5;color:#18334f}h1,h2,h3,h4,strong,label{color:inherit}p,small,.muted,.eyebrow,.workspace,.brand small,.sidebar-foot,.sidebar-foot small,.capture-time,.section-note,.form-note,.empty,.tile-copy small,.tile-arrow,.simple-row small,.patient-banner small,.touch-check small,.care-audit small,.remark small{color:#52657a}small{line-height:1.65}a{color:#175da5}footer{color:#52657a}
.sidebar{background:#103657;color:#fff;border-color:#244c70}.sidebar .brand,.sidebar .brand small,.sidebar .workspace,.sidebar-foot{color:#eaf2fa}.sidebar #desktop-nav{scrollbar-color:#7899b7 #103657}.sidebar nav button{color:#eaf2fa}.sidebar nav button.active,#mobile-nav button.active{background:#2366a8;color:#fff}#mobile-nav{background:#fff;border-color:#d9e2eb}#mobile-nav button{color:#21496e}.shell header,header,.login-card,dialog{background:#fff;color:#18334f;border-color:#d9e2eb}.shell header h2{color:#18334f}.brandmark{background:#175da5;color:#fff}.brandmark span{color:#fff}
.card,.patient-search,.patient-banner,.fold,.launch-tile,.care-action,.caregiver-patient,.simple-context,.context-banner,.entry,.resident,.stat,.vital,.care-audit,.appointment-card,.phone-notice-settings,.notification-row,.touch-check,.simple-row{background:#fff;color:#18334f;border-color:#d9e2eb;box-shadow:0 3px 16px #18334f06}.admin-grid .admin-tile:nth-child(n){background:#fff;border-color:#d6e2ef;color:#18334f;border-left:5px solid #2673bc}.admin-tile strong,.admin-tile small,.admin-tile .tile-arrow{color:#18334f}.admin-tile b{background:#e8f1fb;color:#175da5}.admin-tile .admin-icon{color:#175da5}
button,.login-submit,.wide-submit{background:#175da5;color:#fff}button.secondary,.back-button,.manage-link,.patient-detail-link,.incharge-secondary button,.report-actions button,.patient-card-actions button,.notification-row .secondary{background:#edf4fc;color:#144c85;border-color:#c4d7ea}.iconbutton{background:#edf4fc;color:#144c85}.launch-tile .tile-icon,.care-action-icon,.initial,.avatar,.row-icon,.tile-badge,.hero .initial{background:#e5effa;color:#175da5}.care-action strong,.care-action span,.launch-tile strong{color:#18334f}.care-action>span:last-child{color:#52657a}.care-action:hover{background:#f2f7fd;border-color:#82aeda}.incharge-attention button{background:#edf4fc;color:#174b7b;border-color:#d1e0ef}.incharge-attention span{color:#355a7f}
.shift-status,.hr-info,.entry-context,.instruction-note,.photo-date-banner,.photo-slot,.info,.detail-banner,.assignment-context{background:#edf4fb;color:#18334f;border-color:#d2e0ee}.shift-status p,.instruction-note p,.instruction-note small,.shift-status .eyebrow{color:#3d5871}.shift-status button,.shift-off-wrap button{background:#175da5;color:#fff;border-color:#175da5}
input,select,textarea,.caregiver-patient select,.simple-context input,.simple-context select,.incharge-date input{background:#fff;color:#18334f;border-color:#b9cbdc;padding:13px 14px;line-height:1.5;min-height:48px;border-radius:10px}input::placeholder,textarea::placeholder{color:#667b90;opacity:1}input:focus,select:focus,textarea:focus{outline:2px solid #3981c8;outline-offset:2px}input:-webkit-autofill{-webkit-text-fill-color:#18334f;-webkit-box-shadow:0 0 0 1000px #fff inset;caret-color:#18334f}label{line-height:1.6}.field{gap:8px;margin:14px 0}.field textarea{min-height:112px}input[type=checkbox]{width:24px;height:24px;min-height:24px;accent-color:#175da5;flex:0 0 24px}.form-actions{padding-top:16px;gap:12px}.modal-head{border-color:#d9e2eb}dialog::backdrop{background:#102c497a}
.pill{background:#e6effa;color:#174c80}.pill.amber,.pill.red{background:#ad243b;color:#fff}.pending-red,.delay-alert,.error-panel,.hr-warning{background:#a71f36!important;color:#fff!important;border-color:#a71f36!important}.pending-red *,.delay-alert *,.error-panel *,.hr-warning *{color:#fff!important}.pending-red button{background:#7a1326!important;color:#fff!important;border-color:#e6a3ae!important}.remark,.shared-record,.ledger-total,.salary-summary span,.hr-stats span,.live-message,.trip-summary,.trip-review{background:#edf4fb;color:#18334f;border-color:#d5e2ef}.message{background:#f0f3f6;color:#18334f;border-color:#dce4ec}.message.mine{background:#e4effb}.message small{color:#52657a}.ledger-row,.simple-row,.notification-row,.care-audit,.card-head,.fold summary,.fold-body{border-color:#d9e2eb}.hr-table th{background:#e9f1fa;color:#173c61}.hr-table td,.hr-table th{border-color:#d9e2eb}.hr-table td{color:#18334f}.hr-date-check{background:#fff;color:#18334f;border-color:#c0d1e3}.hr-date-check:has(input:checked){background:#175da5;color:#fff}.touch-check:has(input:checked){background:#e8f2fd;color:#18334f;border-color:#3981c8}.is-unread,.notification-row.is-unread{background:#edf5ff;border-color:#9cbbdc}.notice-dot,.dot{background:#2673bc}
.fold summary small,.notification-row small,.notification-row p,.phone-notice-settings small,.caregiver-patient label,.auto-room small,.auto-room strong,.incharge-assigned small,.live-message small,.hr-stats b,.simple-assignment strong,.simple-context label{color:#3e5871}.fold>summary:after,.fold-symbol,.tick{color:#175da5}.linked-family{background:#edf4fb;color:#18334f;border-color:#d2e0ee}.linked-label{color:#52657a}.audit-photo{background:#e9eef4}.simple-row{padding:16px;gap:14px}.card,.care-audit{padding:22px}.card h3,.care-audit h3{line-height:1.5;margin:0 0 12px}.care-audit p{line-height:1.7}.fold summary{padding:19px 20px;line-height:1.5}.fold-body{padding:20px}.launch-tile,.care-action{padding:22px;gap:16px}.care-action strong{line-height:1.5}.entry-context{padding:16px}.linked-family{padding:16px}.notification-row{padding:18px;gap:14px}.care-audit .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.photo-date-banner{padding:16px}
.notice-strip,#app-update-banner,.demo-banner{background:#e8f2fd;color:#18334f;border-color:#c1d7ed}.notice-strip button,.demo-banner button{background:#175da5;color:#fff;border-color:#175da5}#notification-banner{position:fixed;z-index:60;top:90px;right:24px;width:min(460px,calc(100vw - 32px));max-height:55vh;overflow:auto;margin:0;padding:18px;border:1px solid #a9c4df;border-left:5px solid #175da5;border-radius:16px;background:#fff;color:#18334f;box-shadow:0 12px 40px #1736572e;display:flex;align-items:flex-start;gap:12px}#notification-banner>div{flex:1;min-width:0}#notification-banner p{font-size:14px;line-height:1.6;margin:7px 0;overflow-wrap:anywhere}#notification-banner strong{color:#173657}#notification-banner small{color:#52657a}#notification-banner button{flex-shrink:0;min-height:44px;padding:10px}#offline-banner{background:#a71f36;color:#fff}#toast{background:#173f69;color:#fff;border-color:#477bac}
.remember-choice{display:flex;gap:12px;align-items:center;margin:20px 0 6px;font-size:14px}.login-hint{display:block;margin-bottom:18px}.login-submit{margin-top:14px}.whatsapp-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 16px;border-radius:10px;background:#14733d;color:#fff;text-decoration:none;margin:0 0 16px;font-weight:600}.duty-options{display:grid;gap:12px;margin:16px 0}.duty-options .touch-check{margin:0;min-height:76px;padding:16px;gap:16px}.duty-options small{display:block;margin-top:4px}.duty-evidence{margin:16px 0}.duty-evidence img{width:min(100%,300px);max-height:240px;object-fit:cover;border-radius:12px}.duty-evidence figcaption{font-size:12px;line-height:1.6}.care-photo,.audit-photo{cursor:zoom-in}.care-photo:focus-visible,.audit-photo:focus-visible{outline:3px solid #3981c8;outline-offset:3px}
#photo-viewer{padding:0;width:94vw;max-width:1200px;height:92dvh;max-height:94dvh;border:0;border-radius:16px;overflow:hidden;background:#0f1f30;color:#fff}#photo-viewer::backdrop{background:#000d}.photo-toolbar{display:flex;align-items:center;gap:10px;padding:14px;background:#173657;color:#fff;flex-wrap:wrap}.photo-toolbar strong{color:#fff;flex:1}.photo-toolbar button{min-width:44px;min-height:44px;padding:10px;background:#2c5c89;color:#fff}.photo-stage{overflow:auto;height:calc(100% - 84px);touch-action:pan-x pan-y pinch-zoom;padding:12px}.photo-stage img{display:block;width:100%;max-width:none;height:auto;object-fit:contain;margin:0 auto}.photo-stage{scrollbar-color:#6685a2 #0f1f30}#photo-viewer[open]{display:flex;flex-direction:column}#photo-viewer .photo-stage{flex:1;min-height:0}
@media(max-width:600px){.card,.care-audit{padding:18px}.launch-tile,.care-action{padding:18px}.fold summary,.fold-body{padding:16px}.simple-row{padding:14px;flex-wrap:wrap}.section-heading{margin-bottom:18px}.section-title h1{font-size:25px}#notification-banner{top:84px;right:16px;flex-wrap:wrap}#notification-banner>div{flex-basis:100%}.photo-toolbar{gap:7px;padding:10px}.photo-toolbar strong{flex-basis:100%}.photo-stage{height:calc(100% - 118px)}.header-controls{gap:8px}.header-controls #account-name{max-width:90px;font-size:12px}.duty-options .touch-check{padding:15px}.sidebar{display:none}}
@media print{#photo-viewer,#notification-banner{display:none!important}body,#print-area,#print-area *{background:#fff!important;color:#111!important}}
.photo-storage-choice{display:flex;align-items:center;gap:10px;padding:12px 16px;background:#eaf1f8;color:#173657;font-size:14px;flex-wrap:wrap}.photo-storage-choice small{color:#52657a}.photo-storage-choice input{min-height:24px}.photo-stage img{max-height:none}
.gender-unavailable{opacity:.52}.gender-unavailable:after{content:'Gender does not match';font-size:12px;color:#52657a}.day-plan-note{padding:16px}

/* install.css */
.install-link{display:block;text-align:center;margin-top:18px;padding:12px;color:#fff;background:#1c5289;border:1px solid #5281af;border-radius:10px;text-decoration:none;font-weight:600}.install-page{margin:0;background:#081e3e;color:#fff;font:16px/1.65 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.install-wrap{max-width:800px;padding:36px 20px 60px;margin:auto}.install-brand{text-align:center}.install-logo{width:140px;height:140px;border-radius:28px;background:#fff;box-shadow:0 12px 40px #0004}.install-page h1{font-size:30px;line-height:1.3;margin:18px 0 10px}.install-page h2{font-size:22px;margin:0 0 12px}.install-page p{color:#dce9fa}.install-controls{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:24px 0}.install-page button,.install-page .open-app{padding:14px 22px;border:1px solid #5182b3;border-radius:12px;background:#226bb6;color:white;text-decoration:none;font:inherit;font-weight:600;font-size:16px;cursor:pointer}.install-card{background:#11315b;padding:24px;border:1px solid #345d8c;border-radius:18px;margin-top:18px;scroll-margin-top:20px}.install-card li{margin:12px 0}.install-note{padding:15px;background:#174574;border-radius:12px;color:white}.install-page a{color:#d4e8ff}.install-page footer{text-align:center;color:#c9dcf4;margin-top:24px;font-size:13px}[hidden]{display:none!important}@media(max-width:500px){.install-wrap{padding-top:28px}.install-page h1{font-size:26px}.install-card{padding:20px}.install-controls>*{width:100%;box-sizing:border-box;text-align:center}}

.install-header-link{color:white;text-decoration:none;white-space:nowrap;font-size:12px;padding:8px;border-radius:9px;background:#174879}@media(max-width:500px){.install-header-link{font-size:10px;padding:6px}}

/* v0.19 milky-white installation page */
.install-page{background:#f7f8f5;color:#18334f}.install-page p,.install-page footer{color:#52657a}.install-card{background:#fff;color:#18334f;border-color:#d9e2eb}.install-page .install-note{background:#edf4fb;color:#18334f}.install-page a{color:#175da5}.install-page .open-app{color:#fff}

/* residents.css */
/* Navy actions on the existing milky-white surfaces. Red pending alerts retain white type. */
button:not(.directory-count):not(.iconbutton):not(.care-action),.secondary,.back-button,.directory-tabs button,.directory-family-name,.directory-gender-counts button,.whatsapp-button{background:#2563eb;color:#fff;border-color:#1d4ed8}
button:hover,.secondary:hover,.directory-family-name:hover{background:#1d4ed8;color:#fff}
.directory-count{background:#fff;color:#2563eb;border-color:#cdd8e5}
.directory-count:hover{background:#f5f7fa;color:#2563eb}
.directory-count small,.directory-count span{color:#2563eb}
.sidebar button{background:transparent;border-color:transparent;color:#fff}
.sidebar button.active{background:#2563eb;color:#fff}
/* Pending colours belong to the active theme; never paint every descendant. */
.private-duty-case,.resident-archive-row{margin-bottom:16px;padding:20px;overflow-wrap:anywhere}
.private-duty-case .actions, .resident-archive-row .actions{gap:12px;margin-top:14px}
#resident-new-family{padding:16px;border:1px solid #ccd8e7;border-radius:12px;margin:14px 0}
#resident-new-family[hidden]{display:none}
:root{--teal:#2563eb;--deep:#2563eb}
#mobile-nav button.active,.shift-status button,.shift-off-wrap button,.wide-submit,.login-submit{background:#2563eb;color:#fff;border-color:#1d4ed8}
button:not(.directory-count) :is(span,strong,small,b){color:inherit}

.sidebar{background:#2254ae;border-color:#4676ca}.sidebar .workspace,.sidebar .brand small,.sidebar-foot{color:#e6efff}.brandmark{background:#2563eb}.admin-grid .admin-tile:nth-child(n){border-left-color:#2563eb}.login-submit,.wide-submit{background:#2563eb}input[type=checkbox]{accent-color:#2563eb}

/* workforce.css */
.workforce-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:18px}.workforce-card{padding:20px;overflow-wrap:anywhere}.workforce-card .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.list-search-bar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;background:#fff;border:1px solid #d7e0ec;border-radius:14px;padding:16px;margin:0 0 22px}.list-search-bar label{display:flex;flex-direction:column;gap:8px;flex:1;min-width:min(100%,220px)}.list-search-bar small{flex-basis:100%;color:#52657a}.list-search-bar button{min-height:48px}.option-search{padding:10px;background:#f3f6fa;border-radius:10px}fieldset{border:1px solid #ccd8e7;border-radius:12px;margin:16px 0;padding:14px}legend{padding:0 6px}#salary-history-filter .field{margin:0;min-width:170px}#salary-history-filter{align-items:end;gap:14px}#salary-history-filter button{margin-bottom:0}#main [hidden]{display:none!important}@media(max-width:600px){.list-search-bar label{flex-basis:100%}.list-search-bar button{flex:1}.workforce-card .actions button{flex:1 1 45%}}

/* profile-pictures.css */
.mcs-profile-avatar{display:inline-flex;vertical-align:middle;width:38px;height:38px;min-width:38px;border-radius:50%;overflow:hidden;background:#e6eff8;margin:0 8px 0 0;border:2px solid #d8e7f4}.mcs-profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}.mcs-photo-button{font:inherit;font-size:12px;white-space:normal;padding:5px 9px;margin:5px 0;max-width:100%;border-radius:8px}.directory-card-grid .card,.workforce-card{overflow-wrap:anywhere;min-width:0}.directory-card-grid .card h2,.directory-card-grid .card h3,.workforce-card h3{overflow-wrap:anywhere}.directory-card-grid .card p,.workforce-card p{word-break:break-word}.mcs-photo-form-note{margin:8px 0;font-size:12px;opacity:.8}

/* reference-theme.css */
/* Multicare v0.43 — bright blue healthcare theme. Visual styles only. */
:root{color-scheme:light!important;--bg:#f0f6fb;--teal:#2169d4;--deep:#183f73;--mint:#e7f0ff;--ink:#14283f;--muted:#60758a;--line:#dce7f1;--shell:#fff;--surface:#fff;--surface-2:#edf4fc;--surface-3:#dfeeff;--primary:#2169d4;--primary-hover:#1756b4;--success:#167b63;--warning:#a16908;--danger:#b63248;--text:#14283f}
html,body,#app-view,#login-view,#main,.shell,main{background:var(--bg)!important;color:var(--ink)!important}
body{font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
body :is(h1,h2,h3,h4,strong,label){color:inherit}
body :is(p,small,.muted,.eyebrow,.workspace,.brand small,.capture-time,.section-note,.form-note,.tile-copy small,.simple-row small,.patient-banner small,.care-audit small,.directory-filters label){color:#60758a!important}
body a,body a:visited{color:#175ab9;text-decoration-color:#8cb0df}
body :is(.card,.login-card,dialog,.patient-search,.patient-banner,.fold,.launch-tile,.care-action,.caregiver-patient,.simple-context,.context-banner,.stat,.vital,.care-audit,.appointment-card,.notification-row,.touch-check,.directory-count,.directory-filters,.directory-card-grid>.card,.directory-bed-grid>.card,.directory-gender-counts>*,.workforce-card,.incharge-attention button){background:#fff!important;color:#14283f!important;border-color:#dce7f1!important;box-shadow:0 5px 22px #21487207}
body :is(.card,.login-card,dialog,.launch-tile,.patient-banner,.directory-count){border-radius:22px}
body :is(.shell header,.modal-head){background:#ffffffed!important;color:#14283f!important;border-color:#dce7f1!important}
body .sidebar{background:#164b91!important;color:#fff!important;border-color:#164b91!important}
body .sidebar :is(.brand,.brand small,.workspace,.sidebar-foot,.sidebar-foot small){background:transparent!important;color:#e5efff!important}
body .sidebar nav button{color:#dfeaff!important;background:transparent!important;border:1px solid transparent!important;border-radius:12px}
body .sidebar nav button.active{background:#ffffff22!important;color:#fff!important;border-color:#ffffff30!important}
body .brand{background:transparent!important;color:inherit!important}
body .brandmark{background:#2169d4!important;color:#fff!important;border-radius:13px}
body .dot{background:#58d7ad}
body button,body .login-submit,body .wide-submit,body .button,body .install-header-link{background:#2169d4;color:#fff;border:1px solid #2169d4;border-radius:12px;font-weight:600;box-shadow:none}
body button:hover{background:#1756b4;border-color:#1756b4;filter:none}
body :is(button.secondary,.back-button,.iconbutton,.manage-link,.patient-detail-link,.report-actions button,.patient-card-actions button,.message-tabs button,.directory-tabs button[aria-pressed=false]){background:#edf4ff!important;color:#1957a6!important;border:1px solid #cfdef3!important}
body :is(.secondary,.back-button,.iconbutton):hover{background:#deebff!important;border-color:#abc9ef!important}
body :is(.directory-tabs button[aria-pressed=true],.message-tabs button[aria-pressed=true]){background:#2169d4!important;border-color:#2169d4!important;color:#fff!important}
body :is(input:not([type=checkbox]):not([type=radio]),select,textarea,option){background:#f7faff!important;color:#14283f!important;border:1px solid #cdddec!important}
body :is(input,textarea)::placeholder{color:#7b8ea4!important;opacity:1}
body :is(input,select,textarea):focus,body :is(button,a):focus-visible{outline:3px solid #77aaf5!important;outline-offset:3px;border-color:#377bd6!important}
body input[type=checkbox],body input[type=radio]{accent-color:#2169d4}
body .admin-grid .admin-tile:nth-child(n){background:#fff!important;color:#14283f!important;border:1px solid #dce7f1!important;border-left:0;border-radius:22px;box-shadow:0 5px 22px #21487207}
body .admin-tile :is(strong,small){color:#243e5c!important}
body .admin-tile .admin-icon,body .tile-icon,body .initial,body .avatar,body .care-action-icon{background:#e7f0ff!important;color:#2169d4!important;border-radius:15px}
body .admin-tile:nth-child(2) .admin-icon,body .launch-tile:nth-child(2) .tile-icon{background:#fff0df!important;color:#b45e18!important}
body .admin-tile:nth-child(3) .admin-icon,body .launch-tile:nth-child(3) .tile-icon{background:#e1f5ee!important;color:#147660!important}
body .admin-tile:nth-child(4) .admin-icon{background:#fff5d2!important;color:#8b650d!important}
body .admin-tile b,body .tile-badge{background:#edf4ff!important;color:#1957a6!important}
body :is(.hero,.shift-status,.hr-info,.entry-context,.instruction-note,.photo-date-banner,.info,.detail-banner,.assignment-context,.shared-record,.linked-family,.remark,.ledger-total,.directory-whatsapp){background:#e8f2fe!important;border-color:#cfdef3!important;color:#23456a!important}
body .directory-placement>span,body .directory-floor,body .salary-summary span,body .hr-stats span,body .vital{background:#edf4fc!important;color:#47617c!important;border-color:#dce7f1!important}
body :is(.directory-count>strong,.directory-gender-counts strong,.directory-placement strong,.hr-stats b,.stat strong){color:#174c92!important}
body .directory-count:nth-child(2){background:#fff5e8!important}
body .directory-count:nth-child(3){background:#eaf7f1!important}
body .directory-gender-counts>button{color:#174c92!important}
body .directory-family-name{background:#edf4fc!important;color:#174c92!important;border-color:#cfdef3!important}
body :is(.directory-no-results,.table-wrap,.hr-table-wrap){background:#fff!important;color:#60758a;border-color:#dce7f1!important}
body .hr-table th,body th{background:#eaf2fc!important;color:#375b80!important}
body td,body .hr-table td{color:#243e5c!important;border-color:#e2ebf4!important}
body :is(.ledger-row,.simple-row,.notification-row,.care-audit,.card-head,.fold summary,.fold-body,.resident,.event,.task){border-color:#dce7f1!important}
body .pill{background:#e7f0ff!important;color:#1a58ac!important}
body .pill.amber{background:#fff1c4!important;color:#805900!important}
body .pill.red{background:#fde4e8!important;color:#a5223b!important}
body :is(.pending-red,.delay-alert,.error-panel,.hr-warning){background:#fff0f2!important;color:#a5223b!important;border-color:#efbcc5!important}
body :is(.pending-red,.delay-alert,.error-panel,.hr-warning) *{color:#a5223b!important}
body .pending-red button{background:#a5223b!important;color:#fff!important;border-color:#a5223b!important}
body #offline-banner{background:#a5223b!important;color:#fff!important}
body :is(#login-error,#form-error):not(:empty){background:#fff0f2!important;color:#a5223b!important;border:1px solid #efbcc5}
body .bed-available{border-left-color:#249d77!important}body .bed-available .directory-bed-status{color:#147660!important}
body .bed-occupied{border-left-color:#2169d4!important}body .bed-occupied .directory-bed-status{color:#1957a6!important}
body .bed-conflict,body .bed-check{border-left-color:#d38b21!important}body :is(.bed-conflict,.bed-check) .directory-bed-status{color:#8f5c0d!important}
body .message{background:#f2f6fc!important;color:#14283f!important;border-color:#dce7f1!important}body .message.mine{background:#e6f0ff!important}body .message small{color:#60758a!important}
body :is(.hr-date-check:has(input:checked),.touch-check:has(input:checked)){background:#e4f2ff!important;color:#174c92!important;border-color:#71a7e8!important}
body #toast{background:#143d70!important;color:#fff!important;border-color:#3974b6!important}
body #notification-banner,body .notice-strip,body #app-update-banner{background:#fff!important;color:#174c92!important;border-color:#b8d3f4!important}
body #mobile-nav{background:#ffffffed!important;color:#47617c!important;border-color:#dce7f1!important;box-shadow:0 -6px 24px #21487209;border-radius:20px 20px 0 0}
body #mobile-nav button{background:transparent!important;color:#55708c!important;border:1px solid transparent!important}
body #mobile-nav button.active{background:#e7f0ff!important;color:#175ab9!important;border-color:#cfdef3!important}
body .whatsapp-button{background:#168263!important;color:#fff!important;border-color:#168263!important}
body footer{color:#60758a!important}
body .launch-tile:hover{background:#f7faff!important;border-color:#a8c9ef!important;filter:none;transform:none}
body .launch-tile:focus-visible{outline:3px solid #77aaf5!important;outline-offset:3px!important}
/* v0.41: consistent spacing, hierarchy and touch targets. */
body{font-size:16px;line-height:1.6}
body .shell main{padding-top:28px;padding-bottom:112px}
body .launch-grid,body .admin-grid{gap:16px;margin:0 0 24px;grid-template-columns:repeat(2,minmax(0,1fr))}
body .launch-tile{display:grid;grid-template-columns:48px minmax(0,1fr) 18px;align-items:center;gap:16px;width:100%;min-width:0;min-height:116px;padding:22px;text-align:left;border-radius:18px;box-shadow:0 4px 16px #00000012;position:relative}
body .launch-tile .tile-icon{width:48px;height:48px;margin:0;border-radius:14px;display:grid;place-items:center;font-size:23px}
body .launch-tile .tile-copy{min-width:0}
body .launch-tile .tile-copy strong{font-size:17px;line-height:1.4;font-weight:650;letter-spacing:-.2px}
body .launch-tile .tile-copy small{font-size:13px;line-height:1.65;margin-top:7px;color:#5d728b!important;font-weight:400}
body .launch-tile .tile-arrow{position:static;font-size:25px;text-align:right;color:#5d7f9c!important}
body .card,body .care-audit,body .fold{border-radius:18px;margin-bottom:20px}
body .section-heading{clear:both;margin:8px 0 26px}
body .section-heading .back-button{display:flex;align-items:center;justify-content:center;width:fit-content;min-height:44px;margin:0 0 24px;padding:10px 16px;border-radius:10px;font-size:14px;line-height:1.4;gap:8px}
body .section-title{display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap}
body .section-title>div{flex:1 1 240px;min-width:0}
body .section-title h1{font-size:27px;line-height:1.3;letter-spacing:-.6px;margin:0 0 10px}
body .section-title p{line-height:1.7;font-size:14px;margin:0;color:#5d728b!important}
body .section-title>button{min-height:44px;margin:0}
body .dashboard-logins{margin:12px 0 28px;padding:26px;border:1px solid #dbe6f0;border-radius:18px;background:#ffffff}
body .dashboard-logins .section-heading{margin:0}
body .dashboard-logins .section-title{gap:12px}
body .dashboard-logins .section-title>div{flex-basis:100%;margin-bottom:8px}
body .dashboard-logins .section-title>button{width:auto;font-size:14px;padding:11px 15px}
body .directory-count-grid,body .directory-gender-counts{gap:12px;margin-bottom:24px}
body .incharge-attention{gap:12px;margin:0 0 24px}
body .hub-heading{margin-bottom:26px}
body #mobile-nav{gap:6px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #dbe6f0;box-shadow:0 -8px 28px #183c6510}
body #mobile-nav button{margin:0;min-height:48px;border-radius:12px;font-size:13px;padding:10px 8px}
body .directory-filters{padding:20px;gap:16px;margin-bottom:24px}
body .directory-card-grid,body .directory-bed-grid,body .workforce-grid{gap:18px}
body .directory-card-grid>.card,body .directory-bed-grid>.card,body .workforce-grid>.card{margin-bottom:0}
@media(max-width:700px){
 body .shell main{padding:22px 16px calc(112px + env(safe-area-inset-bottom))}
 body .launch-grid,body .admin-grid{grid-template-columns:minmax(0,1fr);gap:14px;margin-bottom:22px}
 body .launch-tile{grid-template-columns:44px minmax(0,1fr) 16px;gap:14px;min-height:106px;padding:20px 18px}
 body .launch-tile .tile-icon{width:44px;height:44px;font-size:22px}
 body .launch-tile .tile-copy strong{font-size:17px}
 body .launch-tile .tile-copy small{font-size:13px}
 body .dashboard-logins{padding:20px 18px;margin-top:6px}
 body .dashboard-logins .section-title>button{width:100%;text-align:left}
 body .section-title h1{font-size:25px}
 body .section-heading .back-button{margin-bottom:22px}
 body .shell header{padding:18px 16px;flex-wrap:wrap;gap:14px}
 body .header-controls{max-width:100%;gap:8px}
}
@media print{body .shell main{padding:0}body .dashboard-logins{background:#fff;border-color:#ccc}}
/* Finishing treatments for the reference-inspired profile cards. */
body .launch-tile{border-radius:22px}
body .mcs-profile-avatar{border-radius:14px;border:2px solid #fff;background:#e8f1fc;box-shadow:0 0 0 1px #dce7f1,0 3px 8px #2148720b}
body .mcs-profile-avatar img{object-position:center 25%}
body .directory-card-grid .mcs-profile-avatar,body .workforce-card .mcs-profile-avatar{width:54px;height:54px;min-width:54px;border-radius:17px;margin-top:14px}
body .directory-placement>span{border-radius:14px}
body .directory-card-grid .card,body .workforce-card{border-top:3px solid #d6e7fd!important}
body .directory-card-grid .card:nth-child(3n+2),body .workforce-card:nth-child(3n+2){border-top-color:#f5d6ae!important}
body .directory-card-grid .card:nth-child(3n+3),body .workforce-card:nth-child(3n+3){border-top-color:#bae7d6!important}
@media print{html,body,#app-view,#main,.shell,main{background:#fff!important;color:#000!important}body .sidebar,body #mobile-nav{display:none!important}}

/* apple-layout.css */
/* Keep iOS text autosizing consistent across Safari and Home Screen launches. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Touch devices need readable control text to avoid focus-driven viewport zoom. */
@media (hover:none) and (pointer:coarse){
 input:not([type=checkbox]):not([type=radio]),select,textarea,
 .simple-context input,.simple-context select,.incharge-date input,
 .caregiver-patient select,.directory-filters input,.directory-filters select{
  font-size:16px!important;
 }
}
/* Let narrow standalone windows shrink their grid items naturally. */
.login-wrap,.login-card,.shell,#app-view,main{min-width:0;max-width:100%}
.login-card{width:min(440px,100%)}
.login-wrap{min-height:100vh;min-height:100dvh}
@media(max-width:700px){
 .header-controls{flex-wrap:wrap;min-width:0;max-width:100%}
 #account-name{overflow-wrap:anywhere;min-width:0}
 dialog{box-sizing:border-box;max-width:calc(100% - 24px)}
}

/* daily-status.css */
.daily-status{display:grid;gap:22px;margin-bottom:30px}.ds-toolbar,.ds-section-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ds-toolbar>div{flex:1;min-width:180px}.ds-toolbar .field{margin:0;gap:5px;font-size:12px}.ds-toolbar input{min-height:44px}.ds-patient{display:flex;align-items:stretch;gap:22px;padding:26px;border:1px solid #dce7f1;border-radius:22px;background:linear-gradient(115deg,#e4efff,#f3f8ff)}.ds-identity{display:flex;align-items:center;gap:18px;flex:1;min-width:0}.ds-identity>div{min-width:0}.ds-identity h1{font-size:27px;margin:0 0 10px;overflow-wrap:anywhere}.ds-identity p{margin:0 0 6px}.ds-identity small{color:#60758a!important}.ds-identity .mcs-profile-avatar{width:76px;height:76px;min-width:76px;margin:0;border:3px solid #466785}.ds-condition{display:flex;flex-direction:column;justify-content:center;gap:7px;min-width:220px;max-width:300px;text-align:left;border-radius:16px;padding:22px}.ds-condition strong{font-size:22px;line-height:1.35}.ds-condition small,.ds-condition span{font-size:12px;color:inherit!important}.ds-condition span{margin-top:6px}.ds-observation-note{padding:0 4px;display:grid;gap:6px}.ds-observation-note span,.ds-observation-note p{font-size:13px;margin:0;color:#60758a!important}.ds-vitals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.ds-vital{background:#ffffff;border:1px solid #dce7f1;border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:10px;min-width:0}.ds-vital-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e7f0ff;color:#2169d4!important;font-size:21px}.ds-vital>small{font-size:12px;line-height:1.5;color:#60758a!important}.ds-vital strong{font-size:27px;line-height:1.4;overflow-wrap:anywhere}.ds-vital strong span{font-size:12px;font-weight:400;color:#60758a!important}.ds-vital.ds-flag-1{border-color:#c68c32}.ds-vital.ds-flag-2{border-color:#ec8282}.ds-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.ds-controls>span{font-size:12px}.ds-care-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}body .daily-status .ds-care-button{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:170px;padding:22px;border:1px solid #cdddec!important;border-radius:18px;background:#ffffff!important;text-align:left;min-width:0}.ds-care-button>span{font-size:26px;color:#2169d4!important}.ds-care-button strong{font-size:18px}.ds-care-button small{color:#60758a!important;font-size:12px}.ds-care-button b{font-size:13px;font-weight:500;margin-top:auto}body .daily-status .ds-care-button.ds-selected{border-color:#2169d4!important;background:#edf4ff!important}.ds-alert{padding:20px;border:1px solid #cdddec;border-radius:16px}.ds-alert ul{padding-left:20px;margin:10px 0 0}.ds-alert li+li{margin-top:8px}body .daily-status .ds-urgent{background:#fff0f2!important;border-color:#e5a5b1!important}body .daily-status .ds-review{background:#fff4d4!important;border-color:#e0bf77!important}body .daily-status .ds-clear{background:#e3f5ed!important;border-color:#82c3ac!important}body .daily-status :is(.ds-incomplete,.ds-older,.ds-empty){background:#edf4fc!important;border-color:#b9cde1!important}.ds-activity>.muted{font-size:13px;line-height:1.7;margin-top:12px}.ds-activity>.fold{margin-top:14px}.ds-more{border-top:1px solid #dce7f1;margin-top:28px;padding-top:30px}.ds-guidance h3{margin:24px 0 10px}.ds-guidance p,.ds-guidance li{line-height:1.8}.ds-guidance a{text-decoration:underline}.ds-section-title h2{flex:1}.daily-status .fold{margin-bottom:0}
@media(max-width:1000px){.ds-vitals{grid-template-columns:repeat(3,minmax(0,1fr))}.ds-patient{flex-wrap:wrap}.ds-condition{max-width:none;flex:1;min-width:200px}.ds-care-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.daily-status{gap:18px}.ds-patient{padding:20px 16px;gap:20px}.ds-identity{gap:12px;flex-basis:100%}.ds-identity .mcs-profile-avatar{width:60px;height:60px;min-width:60px}.ds-identity h1{font-size:23px}.ds-identity p{font-size:13px}.ds-condition{width:100%;min-width:0;padding:18px}.ds-condition strong{font-size:21px}.ds-vitals{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ds-vital{padding:16px 13px}.ds-vital strong{font-size:24px}.ds-care-grid{gap:12px}.ds-care-button{min-height:155px!important;padding:18px!important}.ds-toolbar .field{flex:1}.ds-toolbar>div{flex-basis:100%}.ds-controls>button{flex:1;min-height:46px}.ds-observation-note{overflow-wrap:anywhere}}

/* Blue hero, portrait frame and coloured care categories. */
body .ds-patient{border:1px solid #cbdff6;border-radius:26px;box-shadow:0 8px 28px #21487208;background:linear-gradient(120deg,#e4efff,#f3f8ff)}
body .ds-identity h1{color:#163c6a!important;letter-spacing:-.6px}
body .ds-identity .mcs-profile-avatar{width:100px;height:112px;min-width:100px;border-radius:24px;border:4px solid #fff;box-shadow:0 5px 20px #21487214;margin:0}
body .ds-vital{border-radius:22px;box-shadow:0 5px 20px #21487206}
body .ds-vital strong{color:#14283f!important}
body .ds-vital:nth-child(3n+2) .ds-vital-icon{background:#e3f5ed!important;color:#167b63!important}
body .ds-vital:nth-child(3n) .ds-vital-icon{background:#fff0df!important;color:#b45e18!important}
body .daily-status .ds-care-button:nth-child(1){background:#e7f0ff!important;border-color:#cddff8!important;color:#194d91!important}
body .daily-status .ds-care-button:nth-child(2){background:#fff0df!important;border-color:#f2d8b9!important;color:#965113!important}
body .daily-status .ds-care-button:nth-child(3){background:#e3f5ed!important;border-color:#bfe4d4!important;color:#146c53!important}
body .daily-status .ds-care-button:nth-child(4){background:#fff6d9!important;border-color:#eadba8!important;color:#805f0e!important}
body .daily-status .ds-care-button>span{color:inherit!important;background:#ffffff99;border-radius:13px;min-width:44px;min-height:44px;display:grid;place-items:center}
body .daily-status .ds-care-button :is(strong,b){color:inherit!important}
body .daily-status .ds-care-button small{color:#526579!important}
body .daily-status .ds-care-button.ds-selected{box-shadow:0 0 0 2px #2169d4!important;border-color:#2169d4!important}
body .daily-status .ds-condition{box-shadow:none}
body .daily-status :is(.ds-urgent,.ds-urgent *){color:#9a243c!important}
body .daily-status :is(.ds-review,.ds-review *){color:#805900!important}
body .daily-status :is(.ds-clear,.ds-clear *){color:#146c53!important}
body .daily-status :is(.ds-incomplete,.ds-older,.ds-empty){color:#335775!important}
body .ds-vital.ds-flag-1{background:#fffbef;border-color:#dcb460}
body .ds-vital.ds-flag-2{background:#fff3f5;border-color:#e3a0ae}
body .ds-vital.ds-flag-2 .ds-vital-icon{background:#fde3e9!important;color:#a5223b!important}
@media(max-width:600px){body .ds-identity .mcs-profile-avatar{width:76px;height:88px;min-width:76px;border-radius:20px}body .ds-patient{padding:22px 18px}}

/* touch-polish.css */
/* Comfortable caregiver touch targets; no care/permission rules changed. */
body .care-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0 26px}
body .care-action-grid .care-action{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:14px;min-height:164px;width:100%;padding:24px;border:1px solid #d4e3f3;border-radius:22px;text-align:left;touch-action:manipulation}
body .care-action-grid .care-action strong{font-size:19px;line-height:1.4}
body .care-action-grid .care-action>span:last-child{font-size:15px;line-height:1.5}
body .care-action-grid .care-action-icon{width:52px;height:52px;display:grid;place-items:center;font-size:28px}
body .care-action-grid .care-action:nth-child(3n+2) .care-action-icon{background:#fff0df!important;color:#965113!important}
body .care-action-grid .care-action:nth-child(3n) .care-action-icon{background:#e3f5ed!important;color:#146c53!important}
body .care-audit .actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 4px}
body .care-audit .actions>button,body .care-audit .report-actions>button{min-height:52px;min-width:132px;padding:14px 20px;font-size:16px;line-height:1.4;white-space:normal;touch-action:manipulation}
body .caregiver-patient select,body .shift-status button,body .shift-off-wrap button{min-height:54px;font-size:16px}
body .ds-controls button,body .ds-toolbar button{min-height:48px;padding:12px 18px;font-size:15px;touch-action:manipulation}
.ds-photo-section>.muted{font-size:13px;margin-top:10px}.ds-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.ds-photo-card{margin:0;min-width:0;border:1px solid #dce7f1;border-radius:20px;overflow:hidden;background:#fff}.ds-photo-card img.care-photo{display:block;width:100%;height:220px;max-height:none;object-fit:contain;background:#edf4fc;margin:0;border-radius:0;cursor:zoom-in}.ds-photo-card figcaption{padding:16px;display:grid;gap:8px}.ds-photo-card strong{font-size:15px}.ds-photo-card small{font-size:12px;overflow-wrap:anywhere}.ds-photo-card p{font-size:13px;overflow-wrap:anywhere;margin:0}.ds-photo-card .pill{justify-self:start}.ds-activity [data-ds-category]+[data-ds-category]{margin-top:14px}
@media(max-width:700px){body .care-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}body .care-action-grid .care-action{min-height:160px;padding:20px 16px;gap:12px}body .care-action-grid .care-action strong{font-size:18px}body .care-audit .actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}body .care-audit .actions>button{width:100%;min-height:56px;font-size:16px}.ds-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ds-photo-card img.care-photo{height:180px}}
@media(max-width:420px){.ds-photo-grid{grid-template-columns:minmax(0,1fr)}.ds-photo-card img.care-photo{height:240px}body .care-action-grid .care-action{padding:18px 14px}body .care-action-grid .care-action strong{font-size:17px}}

.admin-home-group{margin-top:30px}.admin-home-group>h2,.admin-related>h2{margin:0 0 16px}.admin-related{margin:24px 0;padding-top:24px;border-top:1px solid #dce7f1}.admin-related .actions{gap:12px}

.duty-waiting{margin-top:30px;padding-top:24px;border-top:1px solid #d5e3f2}.duty-waiting h2,.duty-started h2{font-size:19px}.duty-not-started{cursor:default}.duty-not-started>.pill{flex-shrink:0}@media(max-width:500px){.duty-not-started{flex-wrap:wrap}.duty-not-started>.pill{margin-left:62px}}

/* care-operations.css */
/* Keep the notification bell available on every screen size, including the older mobile hide rule. */
body .header-controls #notification-bell{display:inline-flex!important;align-items:center;justify-content:center;position:relative;z-index:12;min-width:48px;min-height:48px;width:48px;height:48px;padding:10px;flex:0 0 48px;touch-action:manipulation;cursor:pointer;pointer-events:auto!important}
body #notification-bell svg,body #notification-count{pointer-events:none}
body .header-controls{position:relative;z-index:11}
body .notification-row{display:flex;align-items:flex-start;gap:12px;min-width:0}
body .notification-row>div{flex:1;min-width:0;overflow-wrap:anywhere}
body .notification-row>button{flex-shrink:0;min-height:44px;min-width:64px}
body .extra-review-card{background:#fff;color:#20334d;border:1px solid #d6e2ef;border-radius:16px;padding:20px;margin:16px 0;box-shadow:0 3px 14px #183e6c08}
body .extra-review-heading{display:flex;gap:16px;justify-content:space-between;align-items:flex-start}
body .extra-review-heading h2{margin:0 0 10px;font-size:19px;color:#1759a2}
body .extra-price{white-space:nowrap;color:#174f88;font-size:22px}
body .extra-review-card>small{display:block;margin-top:8px;color:#52657b}
body .extra-focused{outline:3px solid #a9c8f4;outline-offset:2px}
body .payment-patient .ledger-row.pending-red,body .payment-patient .extra-pending{background:#fff8e8!important;color:#25374d!important;border:1px solid #eddbad!important;border-radius:10px;padding:14px}
body .payment-patient .ledger-row.pending-red :is(strong,small,p,span),body .payment-patient .extra-pending :is(strong,small,p,span){color:#25374d!important}
body img.archived-thumb{display:block!important;width:auto!important;max-width:96px!important;height:auto!important;max-height:96px!important;object-fit:contain!important;cursor:default!important;transform:none!important;filter:none!important;border-radius:6px}
body .archive-caption{display:block;color:#60738a;font-size:11px;margin:5px 0 12px}
@media(max-width:540px){body .extra-review-card{padding:16px}body .extra-price{font-size:18px}body .notification-row{gap:8px}}

/* vibrant-theme.css */
/* Multicare v0.54 — vibrant care workspace. Visual layer only. */
:root{color-scheme:light!important;--bg:#eef4fc;--ink:#162c4b;--text:#162c4b;--muted:#536981;--line:#dae5f3;--primary:#1763cf;--primary-hover:#114ea6;--teal:#1763cf;--deep:#133d73;--mint:#e5efff;--surface:#fff;--surface-2:#edf4ff;--surface-3:#dceaff;--shell:#fff}
body,button,input,select,textarea{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html,body,#app-view,#login-view,#main,.shell,main{background:var(--bg)!important;color:var(--ink)!important}
body{letter-spacing:-.1px;-webkit-font-smoothing:antialiased}
body :is(h1,h2,h3){letter-spacing:-.5px}
body :is(p,small,.muted,.eyebrow,.workspace,.brand small,.capture-time,.section-note,.form-note,.tile-copy small,.simple-row small,.patient-banner small,.care-audit small,.directory-filters label){color:#536981!important}
body :is(.card,.login-card,dialog,.patient-search,.patient-banner,.fold,.caregiver-patient,.simple-context,.context-banner,.stat,.vital,.care-audit,.appointment-card,.notification-row,.touch-check,.directory-filters,.workforce-card,.extra-review-card,.install-card){background:#fff!important;color:#162c4b!important;border-color:#dae5f3!important;border-radius:22px;box-shadow:0 5px 22px #1c42730a}
body :is(.shell header,.modal-head){background:#ffffffed!important;color:#162c4b!important;border-color:#dae5f3!important}
body .sidebar{background:linear-gradient(165deg,#153e77 0%,#145fbd 65%,#087f9c 100%)!important;color:#fff!important;border-color:#194f95!important}
body .sidebar :is(.brand,.brand small,.workspace,.sidebar-foot,.sidebar-foot small){color:#e9f3ff!important}
body .sidebar nav button{color:#e9f3ff!important;background:transparent!important;border-color:transparent!important;border-radius:14px;min-height:48px}
body .sidebar nav button.active{background:#fff!important;color:#1455a8!important;border-color:#fff!important;box-shadow:0 5px 16px #082e5629}
body .brandmark{background:#1763cf!important;color:#fff!important;border-radius:14px;box-shadow:0 4px 12px #1763cf26}
body .sidebar .brandmark{background:#ffffff25!important;box-shadow:none}
body .dot{background:#7ce2bd}
body button,body .login-submit,body .wide-submit,body .button,body .install-header-link{background:linear-gradient(135deg,#1763cf,#1475b5);color:#fff;border:1px solid #1763cf;border-radius:14px;min-height:44px;font-weight:650;box-shadow:0 4px 10px #1763cf1a;transition:background-color .15s ease,box-shadow .15s ease}
body :is(button.secondary,.back-button,.iconbutton,.manage-link,.patient-detail-link,.report-actions button,.patient-card-actions button,.message-tabs button,.directory-tabs button[aria-pressed=false]){background:#e8f0ff!important;color:#1454a5!important;border-color:#c9dcf5!important;border-radius:13px;box-shadow:none}
body :is(.directory-tabs button[aria-pressed=true],.message-tabs button[aria-pressed=true]){background:#1763cf!important;color:#fff!important;border-color:#1763cf!important}
body .section-heading .back-button{border-radius:13px;min-height:44px}
body :is(input:not([type=checkbox]):not([type=radio]),select,textarea,option){background:#f8fbff!important;color:#162c4b!important;border-color:#cbd9eb!important;border-radius:12px;font-size:16px}
body :is(input,textarea)::placeholder{color:#64758c!important}
body input[type=checkbox],body input[type=radio]{accent-color:#1763cf}
body :is(input,select,textarea):focus,body :is(button,a):focus-visible{outline:3px solid #78abec!important;outline-offset:3px}
/* Each destination has a bright identity, with dark text on soft colour. */
body :is(.launch-tile,.care-action,.admin-tile,.directory-count){--tile-a:#e4efff;--tile-b:#f3f8ff;--tile-line:#bed6fa;--tile-accent:#1759b4;--tile-icon:#d2e5ff}
body :is(.launch-tile,.care-action,.admin-tile,.directory-count):nth-child(4n+2){--tile-a:#ffead7;--tile-b:#fff8ee;--tile-line:#f2ceaa;--tile-accent:#9d4b0b;--tile-icon:#ffdbb7}
body :is(.launch-tile,.care-action,.admin-tile,.directory-count):nth-child(4n+3){--tile-a:#dff4e9;--tile-b:#f1fcf7;--tile-line:#b5e1cc;--tile-accent:#146344;--tile-icon:#c4ead7}
body :is(.launch-tile,.care-action,.admin-tile,.directory-count):nth-child(4n+4){--tile-a:#fff2c5;--tile-b:#fffcef;--tile-line:#ebd689;--tile-accent:#775600;--tile-icon:#ffe69c}
body :is(.launch-tile,.care-action,.directory-count),body .admin-grid .admin-tile:nth-child(n){background:linear-gradient(125deg,var(--tile-a),var(--tile-b))!important;color:#162c4b!important;border:1px solid var(--tile-line)!important;border-radius:22px;box-shadow:0 6px 18px #20466e0b}
body :is(.launch-tile,.care-action,.admin-tile){border-top:4px solid var(--tile-accent)!important}
body .admin-tile .admin-icon,body .launch-tile .tile-icon,body .care-action .care-action-icon{background:var(--tile-icon)!important;color:var(--tile-accent)!important;border-radius:15px}
body :is(.admin-tile strong,.admin-tile small,.launch-tile .tile-copy strong,.care-action strong){color:#162c4b!important}
body .launch-tile .tile-copy small{color:#4e617a!important}
body .admin-tile b,body .tile-badge{background:#ffffffb8!important;color:#174b8c!important}
body .directory-count>strong{color:var(--tile-accent)!important}
body .ds-patient{background:linear-gradient(120deg,#dcecff,#e7f6fa 70%,#f2faff)!important;border-color:#bdd7f6!important;border-radius:26px;box-shadow:0 6px 24px #2058960d;color:#162c4b!important}
body .ds-vitals>.ds-vital{background:#fff!important;border-color:#dae5f3;border-top:3px solid #2d7ed6;border-radius:19px;box-shadow:0 4px 14px #20466e08}
body .ds-vitals>.ds-vital:nth-child(4n+2){border-top-color:#d6882d}
body .ds-vitals>.ds-vital:nth-child(4n+3){border-top-color:#279774}
body .ds-vitals>.ds-vital:nth-child(4n+4){border-top-color:#ca6380}
body .ds-vitals>.ds-vital.ds-flag-1{border-color:#c68c32!important}
body .ds-vitals>.ds-vital.ds-flag-2{border-color:#cf5267!important}
body .daily-status .ds-care-button:nth-child(n){background:linear-gradient(135deg,#deebff,#f1f7ff)!important;color:#194d91!important;border-color:#bcd4f6!important;border-radius:22px;box-shadow:0 5px 14px #20466e0a}
body .daily-status .ds-care-button:nth-child(2){background:linear-gradient(135deg,#ffe5cd,#fff7ec)!important;color:#91440a!important;border-color:#efc79f!important}
body .daily-status .ds-care-button:nth-child(3){background:linear-gradient(135deg,#d9f2e6,#f0fbf6)!important;color:#146344!important;border-color:#b2dfc9!important}
body .daily-status .ds-care-button:nth-child(4){background:linear-gradient(135deg,#ffefb4,#fffae7)!important;color:#775600!important;border-color:#e8cf7f!important}
body .daily-status .ds-care-button>span{background:#ffffffb3;border-radius:14px;color:inherit!important}
body .daily-status .ds-care-button.ds-selected{box-shadow:0 0 0 3px #1763cf!important;border-color:#1763cf!important}
body .mcs-profile-avatar{border-radius:18px;border:3px solid #fff;background:#e0edff;box-shadow:0 0 0 1px #c5d9f0,0 4px 12px #22508014}
body .directory-card-grid .card,body .workforce-card{border-top:4px solid #6aa3e6!important}
body .directory-card-grid .card:nth-child(3n+2),body .workforce-card:nth-child(3n+2){border-top-color:#e8ad67!important}
body .directory-card-grid .card:nth-child(3n+3),body .workforce-card:nth-child(3n+3){border-top-color:#62b798!important}
body :is(.hero,.shift-status,.hr-info,.entry-context,.instruction-note,.photo-date-banner,.info,.detail-banner,.assignment-context,.shared-record,.linked-family,.remark,.ledger-total,.directory-whatsapp){background:linear-gradient(120deg,#e4efff,#edf7fc)!important;border-color:#c9dcf5!important;color:#24476f!important}
body th,body .hr-table th{background:#eaf1fb!important;color:#385574!important}
body td,body .hr-table td{color:#243e5c!important;border-color:#e2ebf4!important}
body #mobile-nav{background:#ffffffef!important;border-color:#d5e3f4!important;box-shadow:0 -5px 22px #17477c0c;border-radius:22px 22px 0 0}
body #mobile-nav button{color:#536981!important;border-radius:13px;box-shadow:none}
body #mobile-nav button.active{background:linear-gradient(135deg,#1763cf,#1475b5)!important;color:#fff!important;border-color:#1763cf!important;box-shadow:0 4px 10px #1763cf26}
body #login-view{background:radial-gradient(ellipse at 10% 10%,#c8e2ff,transparent 55%),radial-gradient(ellipse at 95% 90%,#cceee3,transparent 50%),#edf4fc!important}
body .login-card{border-top:5px solid #1763cf!important;box-shadow:0 18px 60px #194b7b15;border-radius:28px}
body .install-link{background:#e8f0ff;color:#1454a5!important;border-color:#c9dcf5;border-radius:14px}
body.install-page{background:#eef4fc;color:#162c4b}
body.install-page .open-app,body.install-page button{background:linear-gradient(135deg,#1763cf,#1475b5);color:#fff;border-color:#1763cf;border-radius:14px}
body.install-page .install-note{background:#e5efff;color:#24476f}
body footer{color:#536981!important}
body dialog::backdrop{background:#122e5266}
@supports(backdrop-filter:blur(16px)){body .shell header,body #mobile-nav{backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}}
@media(hover:hover){body button:hover{filter:brightness(.97)}body :is(.secondary,.back-button,.iconbutton):hover{background:#dbe9ff!important;border-color:#b7d0f0!important}body :is(.launch-tile,.care-action,.admin-tile):hover{box-shadow:0 8px 24px #20466e18;filter:brightness(.985);transform:none}body .sidebar nav button:hover{background:#ffffff20!important}body .sidebar nav button.active:hover{background:#fff!important}}
@media(prefers-reduced-motion:reduce){body button{transition:none}}
@media print{html,body,#app-view,#main,.shell,main{background:#fff!important;color:#000!important}body :is(.card,.launch-tile,.care-action,.admin-tile){box-shadow:none}}
/* Clinical status colours, archived thumbnail restrictions and bell hit areas
   stay under their component-specific rules. No layout or business logic changes. */

/* Pending work: one soft surface, readable text and distinct actions. */
body .care-audit.pending-red{background:#fff8ed!important;color:#162c4b!important;border:1px solid #e8c78c!important;border-left:4px solid #bc7210!important}
body .pending-red :is(h2,h3,h4,strong,p,small,span,label,td){color:#243e5c!important}
body .pending-red .pill{background:#ffedbd!important;color:#704b00!important;border-color:#e8c78c!important}
body .pending-red .pill.red{background:#ffe2e5!important;color:#9c2335!important;border-color:#edb4bd!important}
body .pending-red button{background:#1759b5!important;color:#fff!important;border-color:#1759b5!important;min-height:52px}
body .pending-red button.secondary{background:#e8f0ff!important;color:#174f99!important;border-color:#bdd2ee!important}

/* notification-panel.css */
/* A compact, scrollable bell inbox; no global screen or button changes. */
body #notification-panel{position:fixed;z-index:1200;width:410px;max-width:calc(100vw - 24px);max-height:min(660px,var(--np-available,80vh));display:flex;flex-direction:column;overflow:hidden;background:#fff;color:#162c4b;border:1px solid #d7e4f5;border-radius:24px;box-shadow:0 18px 65px #12386535,0 3px 12px #12386512;font-size:15px;line-height:1.5;text-align:left}
body #notification-panel[hidden]{display:none!important}
body #notification-panel .np-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 20px 12px;background:linear-gradient(125deg,#edf5ff,#f3fbff)}
body #notification-panel .np-eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:700;color:#42709f}
body #notification-panel h2{display:flex;align-items:center;gap:10px;font-size:24px;line-height:1.3;margin:4px 0;color:#162c4b}
body #notification-panel .np-count{background:#1763cf;color:#fff;font-size:12px;border-radius:20px;min-width:25px;padding:3px 7px;text-align:center}
body #notification-panel .np-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;border:0;border-radius:50%;padding:0;background:#e0eaf7!important;color:#234f83!important;font-size:26px;box-shadow:none}
body #notification-panel .np-filters{display:flex;gap:8px;padding:12px 20px 0}
body #notification-panel .np-filters button{min-height:44px;border:0;border-radius:24px;padding:9px 20px;background:#f0f4fa!important;color:#536981!important;box-shadow:none}
body #notification-panel .np-filters button[aria-pressed=true]{background:#e2eeff!important;color:#1759b4!important}
body #notification-panel .np-status{margin:8px 20px 12px;color:#536981!important;font-size:12px}
body #notification-panel .np-list{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:0 10px 12px;-webkit-overflow-scrolling:touch}
body #notification-panel .np-row{display:flex;align-items:flex-start;gap:12px;width:100%;min-height:96px;padding:14px 12px;margin:0 0 5px;background:#fff!important;color:#162c4b!important;border:1px solid transparent!important;border-radius:16px;text-align:left;box-shadow:none;white-space:normal}
body #notification-panel .np-row.np-unread{background:#edf5ff!important;border-color:#dceaff!important}
body #notification-panel .np-avatar{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:16px;font-size:17px;font-weight:750;margin-top:2px;background:#dceaff;color:#1759b4}
body #notification-panel .np-avatar.np-orange{background:#ffe7cf;color:#91440a}
body #notification-panel .np-avatar.np-green{background:#daf1e5;color:#146344}
body #notification-panel .np-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;overflow-wrap:anywhere}
body #notification-panel .np-name{color:#536981;font-size:11px;font-weight:650}
body #notification-panel .np-copy strong{font-size:14px;line-height:1.45;color:#162c4b!important;font-weight:650}
body #notification-panel .np-body{font-size:13px;font-weight:400;line-height:1.55;color:#405977;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body #notification-panel .np-time{font-size:11px;font-weight:500;line-height:1.6;color:#1759b4;margin-top:4px}
body #notification-panel .np-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#1763cf;margin-top:20px}
body #notification-panel .np-empty{padding:32px 18px;text-align:center;color:#405977}
body #notification-panel .np-empty>span{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#def4e9;color:#176344;font-size:24px;margin:0 auto 14px}
body #notification-panel .np-empty strong{display:block;color:#162c4b;font-size:16px}
body #notification-panel .np-empty p{font-size:13px;color:#536981!important}
body #notification-bell[aria-expanded=true]{background:#dceaff!important;color:#1759b4!important;box-shadow:0 0 0 3px #1763cf1a}
@media(hover:hover){body #notification-panel .np-row:hover{background:#e5effc!important;border-color:#cbdcf5!important;filter:none}body #notification-panel .np-close:hover{background:#cfdef2!important}}
@media(max-width:600px){body #notification-panel{right:12px!important;left:12px;width:auto;max-width:none;border-radius:22px}body #notification-panel .np-heading{padding:18px 16px 10px}body #notification-panel .np-filters{padding-left:16px}body #notification-panel .np-status{margin-left:16px;margin-right:16px}}
@media print{body #notification-panel{display:none!important}}

/* chat-panel.css */
body #care-chat-bubble{position:fixed;right:22px;bottom:calc(26px + env(safe-area-inset-bottom));z-index:900;display:grid;place-items:center;width:60px;height:60px;min-height:60px;padding:0;border-radius:50%;background:linear-gradient(145deg,#1763cf,#087ea3)!important;color:#fff!important;border:3px solid #fff!important;box-shadow:0 8px 26px #12467940;touch-action:manipulation}
body #care-chat-bubble[hidden],body #care-chat-panel[hidden]{display:none!important}
body #care-chat-panel{position:fixed;z-index:1000;right:22px;bottom:calc(98px + env(safe-area-inset-bottom));width:380px;height:540px;max-height:calc(100dvh - 140px - env(safe-area-inset-bottom));max-width:calc(100vw - 24px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #cadcf2;border-radius:24px;background:#fff;color:#162c4b;box-shadow:0 16px 60px #12386530;font-size:14px;line-height:1.5}
body #care-chat-panel .mc-head{display:flex;align-items:center;gap:12px;padding:18px 16px;background:linear-gradient(125deg,#1763cf,#087e9d);color:#fff}
body #care-chat-panel .mc-head>div{flex:1;min-width:0;overflow-wrap:anywhere}
body #care-chat-panel .mc-head strong{font-size:17px;color:#fff!important}
body #care-chat-panel .mc-head small{display:block;font-size:11px;color:#e3f3ff!important;margin-top:3px}
body #care-chat-panel .mc-head button{background:#ffffff24!important;color:#fff!important;border:0;box-shadow:none;min-width:44px;min-height:44px;padding:0;border-radius:50%;font-size:25px}
body #care-chat-panel .mc-brand{font-size:26px}
body #care-chat-panel .mc-tabs{display:flex;gap:8px;padding:14px 16px 0}
body #care-chat-panel .mc-tabs button{background:#f0f4fa!important;color:#536981!important;min-height:44px;border:0;box-shadow:none;border-radius:24px;padding:9px 22px}
body #care-chat-panel .mc-tabs button[aria-pressed=true]{background:#e3efff!important;color:#1759b4!important}
body #care-chat-panel .mc-status{margin:10px 16px;color:#536981!important;font-size:11px;line-height:1.5}
body #care-chat-panel .mc-threads,body #care-chat-panel .mc-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px 12px 16px}
body #care-chat-panel .mc-thread{display:flex;align-items:center;gap:12px;width:100%;padding:13px 8px;min-height:76px;border:0;border-radius:16px;background:#fff!important;color:#162c4b!important;box-shadow:none;text-align:left}
body #care-chat-panel .mc-thread>span:nth-child(2){flex:1;min-width:0}
body #care-chat-panel .mc-thread strong{display:block;font-size:14px;color:#162c4b!important;overflow-wrap:anywhere}
body #care-chat-panel .mc-thread small{display:block;color:#536981!important;font-size:12px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}
body #care-chat-panel .mc-avatar{display:grid;place-items:center;flex:0 0 45px;height:45px;border-radius:50%;background:#e0ecff;color:#1759b4;font-weight:700}
body #care-chat-panel .mc-avatar.mc-green{background:#dff3e9;color:#146344}
body #care-chat-panel .mc-messages{background:#f5f8fd}
body #care-chat-panel .mc-message{width:fit-content;max-width:88%;margin:0 auto 12px 0;padding:11px 14px;border-radius:18px 18px 18px 5px;background:#fff;color:#162c4b;box-shadow:0 1px 4px #173b6410;overflow-wrap:anywhere}
body #care-chat-panel .mc-message.mc-mine{margin-left:auto;margin-right:0;background:#1763cf;color:#fff;border-radius:18px 18px 5px 18px}
body #care-chat-panel .mc-message p{white-space:pre-wrap;margin:4px 0;font-weight:400;font-size:14px;color:inherit!important}
body #care-chat-panel .mc-sender,body #care-chat-panel time{display:block;font-size:10px;font-weight:500;color:inherit;opacity:.85}
body #care-chat-panel time{margin-top:6px;text-align:right}
body #care-chat-panel .mc-shared{border-top:1px solid #9bb8da;padding-top:8px;margin-top:8px}
body #care-chat-panel .mc-shared strong,body #care-chat-panel .mc-shared small{color:inherit!important}
body #care-chat-panel .mc-compose{display:flex;align-items:flex-end;gap:8px;padding:12px;border-top:1px solid #dfE8f4;background:#fff}
body #care-chat-panel .mc-compose textarea{resize:none;flex:1;min-width:0;min-height:48px;max-height:120px;border-radius:18px!important;background:#f0f5fc!important;color:#162c4b!important;border:1px solid #d3e0f1!important;font-size:16px!important;padding:10px 12px;line-height:1.5}
body #care-chat-panel .mc-compose button{background:#1763cf!important;color:#fff!important;border:0;box-shadow:none;border-radius:16px;min-height:48px;padding:10px 15px}
body #care-chat-panel .mc-full{background:#fff!important;color:#1759b4!important;border:0;box-shadow:none;border-radius:0;font-size:11px;min-height:44px;padding:8px}
body #care-chat-panel .mc-empty{padding:24px 14px;text-align:center;color:#536981;font-size:13px}
@media(hover:hover){body #care-chat-panel .mc-thread:hover{background:#edf4ff!important}}
@media(max-width:700px){body #care-chat-bubble{right:16px;bottom:calc(94px + env(safe-area-inset-bottom))}body #care-chat-panel{right:12px;bottom:calc(var(--mc-bottom,94px) + env(safe-area-inset-bottom));width:calc(100vw - 24px);height:520px;max-height:var(--mc-height,calc(100dvh - 120px - env(safe-area-inset-bottom)))}}
@media print{body #care-chat-bubble,body #care-chat-panel{display:none!important}}

@media(max-width:700px){body #care-chat-bubble[aria-expanded=true]{visibility:hidden}}

body #care-chat-panel .mc-search{display:block;padding:0 16px 8px}body #care-chat-panel .mc-search input{width:100%;font-size:16px!important;border-radius:14px!important;background:#f2f6fc!important;border-color:#d7e3f3!important;color:#162c4b!important;min-height:44px}
body #care-chat-panel .mc-thread[hidden]{display:none!important}

/* home-menu.css */
/* Compact home-screen menu. Patient records, alerts and forms retain their styles. */
body .home-screen{max-width:1160px;margin:0 auto;padding-bottom:20px}
body .home-screen .hub-heading h1{font-size:28px;letter-spacing:-.7px}
body .home-screen .hub-heading .eyebrow{display:none}
body .home-screen .launch-grid,body .home-screen .care-action-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 14px;margin:20px 0 28px}
body .home-screen .launch-tile,body .home-screen .care-action{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;min-height:124px;padding:8px 4px;background:transparent!important;border:0!important;border-radius:18px;box-shadow:none!important;text-align:center;touch-action:manipulation;width:100%;min-width:0}
body .home-screen .launch-tile>.tile-icon,body .home-screen .care-action>.care-action-icon{display:grid;place-items:center;flex:0 0 66px;width:66px;height:66px;font-size:29px;line-height:1;border-radius:20px;background:linear-gradient(145deg,#2478dc,#1454b1)!important;color:#fff!important;box-shadow:0 5px 12px #1454b125;border:1px solid #ffffff66}
body .home-screen :is(.launch-tile,.care-action):nth-child(4n+2)>:is(.tile-icon,.care-action-icon){background:linear-gradient(145deg,#168d73,#116c59)!important}
body .home-screen :is(.launch-tile,.care-action):nth-child(4n+3)>:is(.tile-icon,.care-action-icon){background:linear-gradient(145deg,#e18a25,#b75c13)!important}
body .home-screen :is(.launch-tile,.care-action):nth-child(4n+4)>:is(.tile-icon,.care-action-icon){background:linear-gradient(145deg,#526782,#2d405d)!important}
body .home-screen .tile-copy{display:block;min-width:0;width:100%}
body .home-screen .tile-copy strong,body .home-screen .care-action strong{display:block;color:#18334f!important;font-size:14px;font-weight:650;line-height:1.4;overflow-wrap:anywhere;margin:0;max-width:150px;margin-inline:auto}
body .home-screen .admin-home-group,body .home-screen .hr-home{margin-top:26px}
body .home-screen :is(.admin-home-group,.hr-home)>h2{font-size:18px;margin:0 0 12px;color:#18334f}
body .home-screen .directory-count-grid{gap:12px}
body .home-screen .directory-count{padding:16px;border-radius:20px}
body .home-screen .directory-count small{display:none}
body .home-screen>.launch-tile{display:inline-flex;width:148px;vertical-align:top;margin:8px 4px}
body .list-search-bar{gap:10px;padding:12px;border-radius:16px}
body .list-search-bar label{gap:0}
body .list-search-bar [role=status]:empty{display:none}
body .section-title .muted:empty{display:none}
@media(max-width:900px){body .home-screen .launch-grid,body .home-screen .care-action-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){body .home-screen .launch-grid,body .home-screen .care-action-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 8px}body .home-screen .launch-tile,body .home-screen .care-action{min-height:122px;padding:6px 2px}body .home-screen .hub-heading h1{font-size:25px}body .home-screen .directory-count-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body .home-screen .directory-count{padding:12px 8px}body .home-screen .directory-count span{font-size:12px;line-height:1.4}body .home-screen .directory-count strong{font-size:25px}body .home-screen .tile-copy strong,body .home-screen .care-action strong{font-size:13px}}
@media(max-width:340px){body .home-screen .launch-grid,body .home-screen .care-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Light iOS-like surfaces and gently raised controls. */
:root{--bg:#f2f2f7;--surface:#fff;--primary:#007aff}
html,body,#app-view,#main,.shell,main{background:#f2f2f7!important}
body .home-screen .launch-tile>.tile-icon,body .home-screen .care-action>.care-action-icon{border-radius:17px;box-shadow:0 3px 8px #18334f18}
body .home-screen .card,body .home-screen .shift-status,body .home-screen .caregiver-patient{border-radius:22px;box-shadow:0 2px 10px #162c4b06}
body button:not(.launch-tile):not(.care-action):not(.directory-count):not(.ds-care-button){border-radius:14px;box-shadow:none}
body .back-button,body button.secondary{background:#e7edf6!important;color:#1254a5!important;border-color:transparent!important}
body .menu-track{display:contents}
body .menu-pager>.menu-page-controls{display:none}
@media(max-width:600px){
 body .menu-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;border-radius:20px;-webkit-overflow-scrolling:touch;gap:0}
 body .menu-track::-webkit-scrollbar{display:none}
 body .menu-track>.menu-page{flex:0 0 100%;min-width:0;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always;margin:8px 0 0;padding:4px 2px 10px;align-content:start}
 body .menu-pager>.menu-page-controls{display:flex;justify-content:center;align-items:center;gap:0;margin:0 0 16px}
 body .menu-page-controls button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;background:transparent!important;border:0!important;box-shadow:none}
 body .menu-page-controls button::after{content:'';width:7px;height:7px;border-radius:50%;background:#a6b0be}
 body .menu-page-controls button[aria-current=page]::after{width:8px;height:8px;background:#1763cf}
 body .menu-track:focus-visible{outline:3px solid #78abec;outline-offset:3px}
}
@media(prefers-reduced-motion:reduce){body .menu-track{scroll-behavior:auto}}
/* Professional healthcare menu: quiet surfaces and clear destination cards. */
body .home-screen{max-width:1120px}
body .home-screen .launch-grid,body .home-screen .care-action-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0 24px}
body .home-screen .launch-tile,body .home-screen .care-action{display:flex;align-items:flex-start;justify-content:flex-start;gap:16px;min-height:154px;padding:20px;background:#fff!important;color:#18334f!important;border:1px solid #dde5ee!important;border-radius:20px;box-shadow:0 2px 5px #173b6405!important;text-align:left;transition:border-color .15s,box-shadow .15s}
body .home-screen .launch-tile>.tile-icon,body .home-screen .care-action>.care-action-icon{position:static;display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border:0;border-radius:15px;background:#eaf2ff!important;color:#195bb0!important;box-shadow:none}
body .home-screen :is(.launch-tile,.care-action):nth-child(4n+2)>:is(.tile-icon,.care-action-icon){background:#e7f4ef!important;color:#177659!important}
body .home-screen :is(.launch-tile,.care-action):nth-child(4n+3)>:is(.tile-icon,.care-action-icon){background:#fff3e3!important;color:#9b5a12!important}
body .home-screen :is(.launch-tile,.care-action):nth-child(4n+4)>:is(.tile-icon,.care-action-icon){background:#edf0f6!important;color:#4d6382!important}
body .home-screen :is(.tile-icon,.care-action-icon)::before{content:none}
body .home-screen :is(.tile-icon,.care-action-icon) svg{width:31px;height:31px;filter:none;stroke-width:2.5}
body .home-screen .tile-copy strong,body .home-screen .care-action strong{font-size:15px;line-height:1.45;font-weight:650;max-width:none;margin:0;color:#18334f!important;overflow-wrap:normal;word-break:normal;text-align:left;letter-spacing:0}
body .home-screen :is(.admin-home-group,.hr-home)>h2{font-size:18px;letter-spacing:-.25px;margin-bottom:14px}
body .home-screen .directory-count{background:#fff!important;border:1px solid #dde5ee!important;box-shadow:none;border-radius:18px}
body .home-screen .directory-count strong{color:#195bb0!important}
body .home-screen .hub-heading h1{font-weight:700}
body .home-screen>.launch-tile{width:calc(50% - 12px);margin:8px 4px;box-sizing:border-box}
@media(hover:hover){body .home-screen :is(.launch-tile,.care-action):hover{filter:none;transform:none;border-color:#95b5df!important;box-shadow:0 5px 15px #173b6410!important}}
body .home-screen :is(.launch-tile,.care-action):active{background:#f4f8ff!important}
@media(max-width:900px){body .home-screen .launch-grid,body .home-screen .care-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){
 body .home-screen .launch-grid,body .home-screen .care-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body .home-screen .launch-tile,body .home-screen .care-action{min-height:150px;padding:18px 15px;gap:15px;border-radius:18px}
 body .home-screen .menu-track>.menu-page{padding:4px 2px 12px;margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
 body .home-screen .tile-copy strong,body .home-screen .care-action strong{font-size:15px}
 body .home-screen .directory-count-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 body .home-screen .directory-count{padding:13px 9px}
 body .home-screen .directory-count span{font-size:12px}
}
@media(max-width:340px){body .home-screen .launch-tile,body .home-screen .care-action{padding:15px 12px}body .home-screen .tile-copy strong,body .home-screen .care-action strong{font-size:14px}}
/* Semantic colour families: pale backgrounds paired with dark readable ink. */
body .home-screen [data-menu-tone]{--menu-bg:#edf4ff;--menu-ink:#164b88;--menu-icon:#d9e9ff;--menu-line:#cbdcf2}
body .home-screen [data-menu-tone=sun]{--menu-bg:#fff5df;--menu-ink:#785008;--menu-icon:#ffe7aa;--menu-line:#eed9a7}
body .home-screen [data-menu-tone=night]{--menu-bg:#eef0fc;--menu-ink:#3e4881;--menu-icon:#dce1fa;--menu-line:#d3d9ef}
body .home-screen [data-menu-tone=mint]{--menu-bg:#eaf6ef;--menu-ink:#185d42;--menu-icon:#cfead9;--menu-line:#c5e2d1}
body .home-screen [data-menu-tone=teal]{--menu-bg:#e8f6f7;--menu-ink:#155b63;--menu-icon:#ccebed;--menu-line:#c2e1e4}
body .home-screen [data-menu-tone=violet]{--menu-bg:#f2edfb;--menu-ink:#614080;--menu-icon:#e4d9f4;--menu-line:#ddcfed}
body .home-screen [data-menu-tone=rose]{--menu-bg:#fff0f1;--menu-ink:#8c3545;--menu-icon:#f8d9df;--menu-line:#eccdd4}
body .home-screen .launch-tile[data-menu-tone],body .home-screen .care-action[data-menu-tone]{background:var(--menu-bg)!important;color:var(--menu-ink)!important;border-color:var(--menu-line)!important}
body .home-screen .launch-tile[data-menu-tone]>.tile-icon,body .home-screen .care-action[data-menu-tone]>.care-action-icon{background:var(--menu-icon)!important;color:var(--menu-ink)!important}
body .home-screen [data-menu-tone] .tile-copy strong,body .home-screen .care-action[data-menu-tone] strong{color:var(--menu-ink)!important}
/* Full-colour illustrations on bright, restrained healthcare cards. */
body .home-screen .launch-tile[data-menu-tone]>.tile-icon,body .home-screen .care-action[data-menu-tone]>.care-action-icon{width:66px;height:66px;flex-basis:66px;background:#ffffffc7!important;border-radius:19px;border:1px solid #ffffffd9;box-shadow:0 3px 8px #18334f08}
body .home-screen :is(.tile-icon,.care-action-icon) svg{width:57px;height:57px;filter:none;stroke-width:initial}
body .home-screen .launch-tile,body .home-screen .care-action{min-height:165px}
body .home-screen [data-menu-tone=blue]{--menu-bg:#e5f0ff;--menu-line:#bcd5f3}
body .home-screen [data-menu-tone=sun]{--menu-bg:#fff0ce;--menu-line:#ebd191}
body .home-screen [data-menu-tone=night]{--menu-bg:#e7eafa;--menu-line:#c7ceed}
body .home-screen [data-menu-tone=mint]{--menu-bg:#dff3e8;--menu-line:#b7dfc7}
body .home-screen [data-menu-tone=teal]{--menu-bg:#def2f4;--menu-line:#b4dce0}
body .home-screen [data-menu-tone=violet]{--menu-bg:#ece4fa;--menu-line:#d4c4ed}
body .home-screen [data-menu-tone=rose]{--menu-bg:#ffe5eb;--menu-line:#ecc0cc}
@media(max-width:600px){body .home-screen .launch-tile,body .home-screen .care-action{min-height:166px}}

/* vital-alerts.css */
.vital-alert-home .launch-grid{margin-top:8px!important}.vital-alert-home-meta{font-size:12px;line-height:1.5;color:#693745!important;text-align:left}.vital-alert-guidance{font-size:13px;color:#536981;line-height:1.6;margin:14px 0 22px}.vital-alert-card{padding:20px;margin:16px 0}.vital-alert-card h2{font-size:20px;margin:0}.vital-alert-measurements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.vital-alert-measurement{display:flex;flex-direction:column;gap:6px;background:#f2f6fb;padding:14px;border-radius:14px;overflow-wrap:anywhere}.vital-alert-measurement small,.vital-alert-measurement span{font-size:12px;line-height:1.5}.vital-alert-reason{background:#fff5e1;padding:12px 14px;border-radius:12px;color:#76500b!important}.vital-alert-reason.is-urgent{background:#ffedf0;color:#902b40!important;border-left:3px solid #bc3e55}.vital-alert-card>button{min-height:48px;margin-top:10px}@media(max-width:420px){.vital-alert-measurements{grid-template-columns:minmax(0,1fr)}}
