
:root{font-family:Arial,Helvetica,sans-serif;color:#202b26;background:#f3f6f4;font-synthesis:none;text-rendering:optimizeLegibility;--green:#1d5144;--deep:#153e34;--muted:#68776f;--line:#dce5df;--paper:#fff;--mint:#e7f0e9}
*{box-sizing:border-box}body{margin:0;min-width:320px;font-size:16px;line-height:1.5}button,a,input,select,textarea{font:inherit}button{color:inherit}a{color:inherit}.ehr-shell{min-height:100vh;display:grid;grid-template-columns:254px minmax(0,1fr);background:#f3f6f4}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;padding:24px 14px 18px;background:#173f35;color:#fff}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;padding:0 10px 24px;border-bottom:1px solid #ffffff20}.brand-mark{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:12px;background:#d9e7d8;color:#174839;font-family:Georgia,serif;font-size:17px;font-weight:700}.brand strong{display:block;font-family:Georgia,serif;font-size:18px;font-weight:600;line-height:1.2}.brand small{display:block;margin-top:4px;color:#d3e2d8;font-size:11px;letter-spacing:.025em}.sidebar-label{padding:20px 12px 9px;color:#a9c5b5;font-size:11px;font-weight:800;letter-spacing:.12em}.side-nav{display:grid;gap:3px;overflow-y:auto}.nav-item{width:100%;display:flex;align-items:center;gap:11px;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#deebe2;text-align:left;font-size:14px;cursor:pointer}.nav-item:hover{background:#ffffff12;color:white}.nav-item.active{background:#e4eee6;color:#164538;font-weight:700}.nav-glyph{width:18px;text-align:center;font-size:17px;line-height:1}.nav-count{margin-left:auto;min-width:22px;padding:2px 6px;border-radius:999px;background:#f4d588;color:#5e4a16;text-align:center;font-size:11px;font-weight:800}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff20;padding:15px 10px 2px;color:#e2eee5;font-size:12px}.sidebar-bottom small{display:block;margin:4px 0 0 14px;color:#aec8b7;font-size:11px}.private-dot{display:inline-block;width:7px;height:7px;margin:0 7px 1px 0;border-radius:50%;background:#8bc69d}.main-column{min-width:0}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,54px);border-bottom:1px solid var(--line);background:#fff}.facility-label,.topbar-right{display:flex;align-items:center;gap:11px}.facility-mark{width:35px;height:35px;display:grid;place-items:center;border-radius:9px;background:#e7f0e8;color:var(--green);font-size:12px;font-weight:800}.facility-label strong,.user-label{display:block;color:#2b3d34;font-size:13px;font-weight:700}.facility-label small,.user-label small{display:block;margin-top:2px;color:#78857d;font-size:11px;font-weight:400}.topbar-right{gap:10px}.mode-pill,.count-pill{display:inline-flex;align-items:center;border:1px solid #d4e3d8;border-radius:999px;background:#edf5ef;color:#245b47;font-size:11px;font-weight:800;padding:5px 10px}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#dcebdc;color:#174839;font-weight:800}.user-label{font-size:12px}.page-wrap{width:min(1360px,100%);margin:0 auto;padding:25px clamp(20px,4vw,54px) 22px}.safety-banner{display:flex;align-items:center;gap:12px;margin:0 0 24px;padding:12px 15px;border:1px solid #ebd897;border-radius:11px;background:#fff8e6;color:#5a4d28}.safety-icon{width:22px;height:22px;flex:0 0 22px;display:grid;place-items:center;border-radius:50%;background:#f4e6b6;color:#725718;font-size:13px;font-weight:800}.safety-banner strong{display:block;color:#755c1d;font-size:13px}.safety-banner span{display:block;font-size:12px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin:0 0 21px}.eyebrow{margin:0 0 6px;color:#40745e;font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,'Times New Roman',serif;color:#173f35;font-weight:500;letter-spacing:-.025em}h1{font-size:36px;line-height:1.12;margin-bottom:7px}h2{font-size:23px;line-height:1.16;margin-bottom:0}.subhead{max-width:760px;margin:0;color:#697970;font-size:14px}.button{display:inline-flex;min-height:40px;align-items:center;justify-content:center;padding:8px 14px;border:1px solid transparent;border-radius:8px;text-decoration:none;font-size:13px;font-weight:700;cursor:pointer;transition:.14s ease}.button:disabled{opacity:.55;cursor:wait}.button.primary{background:#1d5144;color:#fff}.button.primary:hover:not(:disabled){background:#123d32}.button.secondary{border-color:#c5d4ca;background:white;color:#285745}.button.secondary:hover:not(:disabled){background:#edf4ef}.prototype-link{flex:0 0 auto}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:17px}.metric-card{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 4px 14px #1a46320a}.metric-icon{width:37px;height:37px;flex:0 0 37px;display:grid;place-items:center;border-radius:11px;background:#edf4ef;color:#245c48;font-size:17px}.metric-card div>span,.metric-card small{display:block;color:#738178;font-size:11px}.metric-card strong{display:block;margin:2px 0;color:#1f4033;font-family:Georgia,serif;font-size:26px;font-weight:500;line-height:1.1}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:16px;align-items:start}.panel{min-width:0;padding:20px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 5px 17px #1a46320a}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.panel-heading .eyebrow{margin-bottom:4px}.panel-heading h2{font-size:21px}.resident-list{display:grid;gap:9px}.resident-row{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #e3ebe5;border-radius:10px;background:#fbfcfb}.resident-button{width:100%;text-align:left;cursor:pointer}.resident-button:hover{border-color:#a8c1ae;background:#f5faf6}.resident-avatar{width:37px;height:37px;flex:0 0 37px;display:grid;place-items:center;border-radius:50%;background:#e2eee3;color:#27604a;font-weight:800}.resident-main{display:block;min-width:0;flex:1}.resident-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}.resident-title strong{color:#254d3d;font-size:14px}.resident-title small{color:#86928a;font-size:10px}.resident-goal{display:block;margin:4px 0;color:#59685f;font-size:12px}.resident-meta{display:block;color:#839087;font-size:10px}.resident-meta i{font-style:normal;margin:0 4px}.resident-open{color:#32694f;font-size:11px;font-weight:700}.action-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.empty-state{display:grid;justify-items:center;padding:30px 18px;border:1px dashed #d5e1d8;border-radius:10px;background:#fafcfb;text-align:center}.empty-mark{width:29px;height:29px;display:grid;place-items:center;margin-bottom:6px;border-radius:50%;background:#eaf2eb;color:#407255}.empty-state h3{margin:2px 0 4px;color:#2b503e;font-size:14px}.empty-state p{max-width:380px;margin:0;color:#77847c;font-size:12px}.record-list{display:grid;gap:0}.record-list.compact .record-card{padding-bottom:13px}.record-card{position:relative;display:flex;gap:11px;padding:0 0 17px}.record-card:not(:last-child):before{position:absolute;top:9px;bottom:-1px;left:4px;width:1px;background:#dce8de;content:""}.record-marker{z-index:1;width:9px;height:9px;flex:0 0 9px;margin-top:6px;border:2px solid #fff;border-radius:50%;background:#659678;box-shadow:0 0 0 1px #b8cfbe}.record-content{min-width:0;flex:1}.record-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.record-tag,.record-status,.version-tag{padding:3px 7px;border-radius:99px;background:#edf4ef;color:#34654e;font-size:10px;font-weight:700}.record-status{background:#f4f5f3;color:#667269;font-weight:600}.version-tag{background:#e8edf7;color:#465987}.record-content h3{margin:6px 0 3px;color:#293e32;font-size:13px}.record-person{margin:0 0 3px;color:#718077;font-size:11px}.record-detail{margin:4px 0;color:#66746b;font-size:11px}.record-detail p{margin:2px 0}.record-content time{display:block;margin-top:4px;color:#89948d;font-size:10px}.pillar-strip{display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;align-items:center;margin-top:16px;padding:18px 20px;border:1px solid #d7e4da;border-radius:13px;background:#edf4ee}.pillar-strip h2{font-size:20px}.pillars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.pillars span{padding:9px 8px;border-radius:8px;background:#fff;color:#41574a;font-size:10px;line-height:1.3}.pillars b{display:block;margin-bottom:4px;color:#4b8460;font-size:9px;letter-spacing:.08em}.heading-actions{display:flex;align-items:flex-end;gap:9px}.resident-select-label{display:grid;gap:4px;color:#6c7a71;font-size:10px;font-weight:700}.resident-select-label select{min-width:210px}.heading-actions select,.record-form input,.record-form select,.record-form textarea,.resident-select-label select{width:100%;min-height:39px;padding:8px 10px;border:1px solid #cfdcd3;border-radius:8px;background:#fff;color:#27382e;font-size:12px}.profile-card{display:flex;align-items:center;gap:18px;margin:0 0 16px;padding:21px;border:1px solid #dbe6de;border-radius:13px;background:linear-gradient(110deg,#eef5ef,#fff)}.profile-avatar{width:58px;height:58px;flex:0 0 58px;display:grid;place-items:center;border-radius:18px;background:#dcebdc;color:#245a43;font-family:Georgia,serif;font-size:23px}.profile-details{min-width:0;flex:1}.profile-details .eyebrow{margin-bottom:3px}.profile-details h2{font-size:25px}.profile-details p:not(.eyebrow){margin:4px 0;color:#6d7c71;font-size:12px}.profile-details blockquote{margin:7px 0 0;color:#43594a;font-size:13px;font-style:italic}.bullet{padding:0 4px}.profile-stat{padding-left:20px;border-left:1px solid #d7e3d9}.profile-stat span,.profile-stat strong{display:block}.profile-stat span{color:#76837a;font-size:10px}.profile-stat strong{color:#234c3a;font-family:Georgia,serif;font-size:26px;font-weight:500}.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.snapshot-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.snapshot-item{padding:11px;border-radius:8px;background:#f5f8f5}.snapshot-item span,.snapshot-item strong{display:block}.snapshot-item span{color:#79867d;font-size:10px}.snapshot-item strong{margin-top:3px;color:#304c3c;font-size:12px}.quick-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.quick-links button,.subnav button{padding:7px 10px;border:1px solid #d0ded3;border-radius:7px;background:#fff;color:#32624a;font-size:11px;cursor:pointer}.quick-links button:hover,.subnav button:hover{background:#eef5ef}.cems-reference{flex:0 0 auto;padding:7px 10px;border:1px solid #d9e4dc;border-radius:8px;background:#fff;color:#617267;font-size:10px}.module-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.85fr);gap:16px;align-items:start}.record-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:grid;align-content:start;gap:5px;color:#526258;font-size:11px;font-weight:700}.field>span{display:block}.field.full{grid-column:1/-1}.field input:focus,.field select:focus,.field textarea:focus,.resident-select-label select:focus{outline:3px solid #e2efe4;border-color:#7da88a}.field textarea{resize:vertical;min-height:90px}.form-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:3px;padding-top:12px;border-top:1px solid #e8eee9}.form-footer span{color:#7b887f;font-size:10px}.notice-card{display:flex;gap:12px;margin:0 0 14px;padding:14px 16px;border-radius:10px;font-size:12px}.notice-card strong{display:block;flex:0 0 165px}.notice-card span{color:#626a5a}.notice-card.amber{border:1px solid #e6d49b;background:#fff8e8;color:#725d22}.subnav{display:flex;gap:8px;margin:0 0 15px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:11px}th,td{padding:11px 10px;border-bottom:1px solid #e7ede8;text-align:left;white-space:nowrap}th{color:#718076;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}td{color:#3e5045}.message{margin:0 0 15px;padding:11px 14px;border-radius:9px;font-size:12px}.message.error{border:1px solid #e9c2bc;background:#fff0ee;color:#8a3027}.message.success{border:1px solid #c8e0ca;background:#eef8ef;color:#285c32}.page-footer{display:flex;justify-content:space-between;gap:12px;padding:22px 2px 5px;color:#859188;font-size:10px}.signin-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f3f6f4}.signin-card{max-width:480px;padding:32px;border:1px solid #dbe5dd;border-radius:16px;background:#fff;box-shadow:0 10px 35px #214b3518}.signin-card h1{font-size:32px}.signin-card p:not(.eyebrow){color:#617168;margin-bottom:20px}
@media(max-width:1100px){.ehr-shell{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding-inline:10px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pillars{grid-template-columns:repeat(4,minmax(0,1fr))}.pillar-strip{grid-template-columns:1fr}.module-grid{grid-template-columns:1fr}}
@media(max-width:760px){.ehr-shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:10px 14px}.brand{padding:0 3px 10px;border-bottom:0}.sidebar-label,.sidebar-bottom{display:none}.side-nav{display:flex;overflow-x:auto;padding:5px 0 1px}.nav-item{width:auto;flex:0 0 auto;white-space:nowrap;padding:8px 10px;font-size:12px}.nav-glyph{display:none}.topbar{height:60px;padding:0 15px}.facility-label small,.mode-pill{display:none}.user-label{display:none}.page-wrap{padding:18px 14px}.page-heading{align-items:flex-start;flex-direction:column;gap:12px}.dashboard-grid,.chart-grid{grid-template-columns:1fr}.profile-card{align-items:flex-start;gap:12px;padding:15px}.profile-avatar{width:45px;height:45px;flex-basis:45px}.profile-stat{display:none}.heading-actions{width:100%;align-items:stretch;flex-direction:column}.resident-select-label select{min-width:0}.cems-reference{white-space:normal}.page-footer{flex-direction:column}.pillars{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){h1{font-size:31px}.metric-grid{gap:8px}.metric-card{gap:8px;padding:11px}.metric-icon{width:30px;height:30px;flex-basis:30px}.metric-card strong{font-size:22px}.metric-card small{font-size:10px}.panel{padding:15px}.record-form{grid-template-columns:1fr}.field.full,.form-footer{grid-column:auto}.form-footer{align-items:flex-start;flex-direction:column}.safety-banner{align-items:flex-start}.notice-card{display:block}.notice-card strong{margin-bottom:3px}.record-row{flex-wrap:wrap}.subnav{flex-direction:column}.brand strong{font-size:16px}.brand small{font-size:10px}}
.profile-form-panel{margin:-5px 0 17px}.profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.synthetic-confirm{grid-column:1/-1;display:flex;align-items:flex-start;gap:9px;color:#5e6d63;font-size:11px}.synthetic-confirm input{width:16px;height:16px;flex:0 0 16px;margin:1px 0 0;accent-color:#1d5144}.chart-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 15px;padding-bottom:12px;border-bottom:1px solid #e7ede8}.chart-filters button{padding:5px 8px;border:1px solid #d8e3da;border-radius:999px;background:#fff;color:#637168;font-size:10px;cursor:pointer}.chart-filters button.selected{border-color:#b5cdb9;background:#eaf3eb;color:#285840;font-weight:700}
@media(max-width:520px){.profile-form-grid{grid-template-columns:1fr}.synthetic-confirm{grid-column:auto}}
.assignment-picker{grid-column:1/-1;display:grid;gap:8px;margin:0;padding:14px;border:1px solid #dce7df;border-radius:9px;background:#f9fbf9}.assignment-picker legend{padding:0 5px;color:#315c45;font-size:14px;font-weight:700}.assignment-picker p{margin:0;color:#758279;font-size:13px}.assignment-picker label{display:flex;align-items:center;gap:9px;padding:7px 9px;border:1px solid #e1eae3;border-radius:7px;background:#fff;color:#40554a;font-size:14px;font-weight:500}.assignment-picker input{width:17px;height:17px;accent-color:#1d5144}.role-summary{display:grid;gap:11px}.role-summary article{padding:13px;border:1px solid #e2ebe4;border-radius:9px;background:#fbfcfb}.role-summary h3{margin:0 0 5px;color:#28523d;font-size:16px}.role-summary p{margin:0;color:#65736a;font-size:14px}.staff-list{display:grid;gap:10px}.staff-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:14px;border:1px solid #e1e9e3;border-radius:10px;background:#fbfcfb}.staff-person{display:grid;gap:3px;min-width:190px}.staff-person strong,.staff-row>div>strong{color:#294c39;font-size:15px}.staff-person span,.staff-row>div>span{color:#617168;font-size:14px}.staff-person small,.staff-row>div>small{color:#7d8980;font-size:13px}.staff-editor{display:grid;grid-template-columns:minmax(190px,.6fr) minmax(250px,1fr);gap:10px;align-items:end;flex:1}.staff-editor .field{font-size:14px}.staff-editor .field select{width:100%;min-height:40px;padding:8px 10px;border:1px solid #cfdcd3;border-radius:8px;background:#fff;color:#27382e;font-size:14px}.staff-editor .assignment-picker{grid-column:1/-1}.staff-editor .assignment-picker label{font-size:13px}.staff-editor .action-row{grid-column:1/-1;margin-top:0}.protected-label{padding:7px 10px;border-radius:999px;background:#edf4ef;color:#51705b;font-size:13px}.staff-row .button{font-size:14px}.assignment-picker.compact{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:10px}.assignment-picker.compact legend{grid-column:1/-1;font-size:13px}.assignment-picker.compact label{padding:5px 7px;font-size:12px}.staff-row .action-row{margin-top:0}
@media(max-width:760px){.staff-row{flex-direction:column}.staff-editor{width:100%;grid-template-columns:1fr}.assignment-picker.compact{grid-template-columns:1fr}.protected-label{align-self:flex-start}}

.shift-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,295px),1fr));gap:16px;margin:20px 0}.shift-grid .panel{display:flex;flex-direction:column;gap:12px;align-items:stretch}.shift-grid .button{align-self:flex-start;margin-top:auto}.shift-links{margin:14px 0}.shift-grid p{color:#385249;font-size:1rem}
