/* Enterprise visual refinement layer */
:root{--canvas:#f3f6f7;--ink:#162f3b;--line:#d7e1e4;--shadow:0 8px 24px rgba(18,47,59,.06)}
body{letter-spacing:-.006em}.portal-layout{grid-template-columns:276px minmax(0,1fr)}.sidebar{width:276px;padding:20px 15px;background:linear-gradient(180deg,#153542 0%,#1b3e4c 58%,#15323e 100%)}.sidebar-brand{height:82px;margin:0 5px;padding:8px 10px 17px;gap:13px}.sidebar-brand img{width:116px;height:58px;padding:5px 8px;border-radius:8px;background:rgba(255,255,255,.96);filter:none}.sidebar-brand span{font-size:12px;letter-spacing:.04em;color:#d8e6eb}.sidebar nav:before{content:"Workspace";padding:0 13px 8px;color:#7fa5b5;font-size:9px;font-weight:850;letter-spacing:.16em;text-transform:uppercase}.sidebar nav{gap:4px;margin-top:20px}.sidebar nav a{min-height:44px;border-radius:8px;padding:8px 12px;font-size:13px}.sidebar nav a.active{background:#f7fbfc;color:#163744;box-shadow:0 7px 18px rgba(5,24,32,.18)}.sidebar nav a.active .nav-icon{color:#397c9a}.sidebar nav b{background:#dcecf2}.sidebar-foot{padding:14px 5px 0}.workspace{grid-column:2}.workspace-head{height:80px;padding:0 clamp(24px,3.5vw,48px);box-shadow:0 2px 10px rgba(18,47,59,.025)}.workspace-head h1{font-size:20px;letter-spacing:-.025em}.breadcrumb{text-transform:uppercase;letter-spacing:.1em;font-size:9px}.content{padding:34px clamp(24px,3.5vw,48px) 48px;background:radial-gradient(circle at 95% 0,rgba(146,197,220,.09),transparent 24%),var(--canvas)}.welcome{padding:34px 38px;border-radius:14px;box-shadow:none;border:1px solid rgba(146,197,220,.15)}.welcome h2{font-size:clamp(29px,3vw,39px)}.metric-grid{gap:12px;margin:16px 0}.metric-card{min-height:108px;border-radius:11px;padding:16px 17px;box-shadow:none;position:relative;overflow:hidden}.metric-card:after{content:"";position:absolute;inset:auto 0 0;height:2px;background:var(--sky);transform:scaleX(0);transform-origin:left;transition:.2s}.metric-card:hover:after{transform:scaleX(1)}.metric-card:hover{transform:none;box-shadow:0 7px 18px rgba(18,47,59,.07)}.metric-card strong{font-size:26px}.panel{border-radius:12px;box-shadow:none}.panel:hover{border-color:#c5d6db}.panel-head{min-height:70px;padding:17px 20px}.panel-head h2{font-size:18px}.page-intro{margin-bottom:19px}.page-intro h2{font-size:clamp(28px,3vw,38px);margin:6px 0}.page-intro p{font-size:14px}.record-row{min-height:64px}.record-row.selected{box-shadow:inset 3px 0 var(--blue);background:#e9f3f6}.type-icon{border-radius:8px}.detail-panel{border-top:3px solid var(--blue)}.workflow-strip{justify-content:flex-start;border-radius:10px;box-shadow:none}.workflow-strip span:last-child b{background:#dceee7;color:#25674d}.job-detail{border-top:3px solid var(--blue)}.job-queue table thead{position:sticky;top:0;z-index:2}tbody tr{transition:background .16s}tbody tr:hover{background:#f4f9fa}th{background:#edf3f5;color:#536c77}td{height:56px}.primary,.secondary,.danger{border-radius:8px;box-shadow:none}.primary:focus-visible,.secondary:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid rgba(76,136,165,.35);outline-offset:2px}.portal-footer{background:#fff}.login-panel{background:linear-gradient(180deg,#fff,#f8fbfb)}.login-form{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:0 18px 45px rgba(18,47,59,.09)}
@media(max-width:850px){.portal-layout{display:block}.workspace{width:100%}.content{padding:24px 15px}.sidebar{width:276px}.workspace-head{height:70px}.welcome{padding:27px 24px}}
.queue-counts{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.queue-counts span{border:1px solid var(--line);background:var(--canvas);border-radius:7px;padding:6px 9px;font-size:10px;color:var(--muted)}.queue-counts b{color:var(--ink);font-size:12px;margin-right:3px}.queue-counts .needs-review{background:#fff7e8;border-color:#ead8ad}.queue-counts .needs-review b{color:#9a681d}.schedule-list{padding:8px}.schedule-row{display:grid;grid-template-columns:145px 44px 1fr auto auto;gap:13px;align-items:center;min-height:76px;padding:11px 13px;border-radius:9px;border-bottom:1px solid var(--line)}.schedule-row:hover{background:var(--ice)}.schedule-date{display:grid}.schedule-date strong{font-size:12px}.schedule-date span,.schedule-main span{font-size:10px;color:var(--muted)}.schedule-main{display:grid}.filter-row.compact{border:0;padding:0}.resident-workspace{display:grid;grid-template-columns:minmax(300px,.68fr) minmax(500px,1.32fr);gap:18px;align-items:start}.resident-directory{position:sticky;top:98px}.resident-card.selected{background:var(--ice);box-shadow:inset 3px 0 var(--blue)}.resident-detail{min-height:480px}.resident-hero{display:flex;align-items:center;gap:14px;padding:24px;border-bottom:1px solid var(--line)}.resident-hero>div{flex:1}.resident-hero h2{margin:5px 0}.resident-hero p{margin:0;color:var(--muted)}.resident-avatar.large{width:62px;height:62px;font-size:23px}.current-assignment{display:flex;justify-content:space-between;align-items:center;margin:20px;padding:16px;border:1px solid #bfd8c9;background:#edf8f2;border-radius:10px}.current-assignment>div{display:grid}.current-assignment small{color:var(--muted)}.daily-entry,.resident-form{padding:22px}.section-title h3{margin:5px 0 14px}.medication-section{border-top:1px solid var(--line);padding:22px}.medication-section form{align-items:end}.compliance-lock{display:flex;gap:14px;border:1px solid #e6d39f;background:#fff8e7;border-radius:12px;padding:18px;margin-bottom:20px}.compliance-lock.compact{margin:20px}.compliance-lock>span{font-size:22px;color:var(--gold)}.compliance-lock p{margin:3px 0;color:#6f6245}.profile-notes,.resident-log-history{padding:22px;border-top:1px solid var(--line)}.profile-notes small{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}.resident-log-history article,.daily-card{border:1px solid var(--line);border-radius:10px;padding:15px;margin-top:10px}.resident-log-history article header,.daily-card header{display:flex;align-items:center;justify-content:space-between;gap:10px}.resident-log-history article p{margin:10px 0}.resident-log-history article small,.muted-empty{color:var(--muted)}.daily-list{padding:12px}.daily-card header>div{display:grid;flex:1}.daily-card header small{color:var(--muted)}.daily-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:14px 0}.daily-fields>div{background:var(--canvas);padding:11px;border-radius:8px}.daily-fields small{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}.daily-fields p{margin:4px 0}.daily-card footer{border-top:1px solid var(--line);padding-top:11px;color:var(--muted);font-size:11px}
@media(max-width:1000px){.resident-workspace{grid-template-columns:1fr}.resident-directory{position:static}.schedule-row{grid-template-columns:120px 40px 1fr auto}.schedule-row>.pill{display:none}}
@media(max-width:720px){.job-queue .panel-head{align-items:flex-start;flex-direction:column}.queue-counts{justify-content:flex-start}.schedule-row{grid-template-columns:40px 1fr auto}.schedule-date{grid-column:1/-1}.schedule-row>.pill{display:none}.daily-fields{grid-template-columns:1fr}}
.geofence-notice{display:flex;gap:13px;align-items:flex-start;border:1px solid #bed8e2;background:#edf7fa;border-radius:11px;padding:14px 17px;margin-bottom:16px}.geofence-notice>span{font-size:23px;color:var(--blue)}.geofence-notice p{margin:2px 0;color:var(--muted)}.geofence-form{flex-wrap:wrap;justify-content:flex-end}.location-select{min-width:min(100%,480px)}.geofence-status{flex-basis:100%;margin:0;text-align:right;color:var(--blue);font-size:11px}.verified-mark{display:block;color:var(--green);font-weight:800}.shift-card .location-select span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}@media(max-width:560px){.geofence-form{width:100%;justify-content:stretch}.geofence-status{text-align:left}.location-select{min-width:0}}
.queue-counts{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.queue-counts span{border:1px solid var(--line);background:var(--canvas);border-radius:7px;padding:6px 9px;font-size:10px;color:var(--muted)}.queue-counts b{color:var(--ink);font-size:12px;margin-right:3px}.queue-counts .needs-review{background:#fff7e8;border-color:#ead8ad}.queue-counts .needs-review b{color:#9a681d}@media(max-width:720px){.job-queue .panel-head{align-items:flex-start;flex-direction:column}.queue-counts{justify-content:flex-start}}
.queue-counts a{display:inline-flex;align-items:center;border:1px solid var(--line);background:var(--canvas);border-radius:7px;padding:7px 10px;font-size:10px;color:var(--muted);text-decoration:none;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease}.queue-counts a:hover{border-color:var(--blue);color:var(--ink);transform:translateY(-1px)}.queue-counts a.active{background:var(--navy);border-color:var(--navy);color:#fff}.queue-counts a.active b{color:#fff}.queue-counts a.needs-review.active{background:#9a681d;border-color:#9a681d;color:#fff}.closed-banner{display:flex;gap:12px;align-items:flex-start;margin:18px 0;padding:16px;border:1px solid #b9d8c8;border-radius:10px;background:#eef8f3}.closed-banner>span{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#287457;color:#fff;font-weight:800}.closed-banner strong{color:#174d3a}.closed-banner p{margin:4px 0 0;color:var(--muted)}
.security-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.security-card{overflow:hidden}.security-card>.panel-head{padding:22px;border-bottom:1px solid var(--line)}.security-form{padding:22px}.security-shield{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e8f3f7;color:var(--blue)}.password-rules{display:grid;gap:6px;border:1px solid var(--line);border-radius:9px;background:var(--canvas);padding:14px;color:var(--muted);font-size:11px}.password-rules strong{color:var(--ink)}.password-rules span:before{content:'✓';color:var(--green);font-weight:800;margin-right:7px}.control-list{padding:8px 22px 22px}.control-list article{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.control-list article:last-child{border-bottom:0}.control-list article>span{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#eaf6ef;color:var(--green);font-weight:900}.control-list strong{display:block}.control-list p{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.security-required{display:flex;gap:13px;align-items:flex-start;border:1px solid #e3c778;border-radius:11px;background:#fff8e6;padding:16px 18px;margin-bottom:18px}.security-required>span{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#a56c13;color:#fff;font-weight:900}.security-required p{margin:3px 0 0;color:#6f6245}.locked-accounts{margin-top:18px}.locked-accounts>.panel-head{padding:20px 22px;border-bottom:1px solid var(--line)}@media(max-width:880px){.security-layout{grid-template-columns:1fr}}
.sidebar nav{min-height:0;overflow-y:auto;scrollbar-width:thin}.sidebar-foot{flex:0 0 auto}.header-signout{display:flex}.header-signout button{min-height:42px;border:1px solid #c4d3d9;border-radius:9px;background:#fff;color:var(--navy);padding:8px 13px;font-size:12px;font-weight:800;display:inline-flex;align-items:center;gap:7px}.header-signout button:hover{background:var(--navy);border-color:var(--navy);color:#fff}@media(max-width:560px){.header-signout button{width:42px;padding:0;justify-content:center}.header-signout button span:last-child{display:none}}
.compliance-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.compliance-workspace{align-items:start}.compliance-list .record-row{grid-template-columns:42px minmax(0,1fr) auto auto}.compliance-detail{overflow:hidden}.compliance-form{padding:22px}.compliance-form .wide{grid-column:1/-1}.compliance-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding-top:17px}.compliance-review{margin:0 22px 22px;padding:18px;border:1px solid #d4e0e4;border-radius:10px;background:#f7fafb}.corrective-link{display:flex;align-items:center;gap:13px;margin:0 22px 22px;padding:15px;border:1px solid #e1c779;border-radius:10px;background:#fff8e7}.corrective-link>span{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#9a681d;color:#fff;font-weight:900}.corrective-link>div{flex:1}.corrective-link p{margin:3px 0;color:var(--muted)}.compliance-timeline{padding:0 22px 22px}.compliance-timeline h3{margin-top:0}@media(max-width:980px){.compliance-metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.compliance-intro{align-items:flex-start;flex-direction:column}.compliance-intro button{width:100%}.compliance-metrics{grid-template-columns:1fr 1fr}.compliance-list .record-row{grid-template-columns:38px minmax(0,1fr) auto}.compliance-list .record-row>.pill.returned{display:none}.compliance-actions{display:grid}.compliance-review{margin:0 14px 14px}.corrective-link{margin:0 14px 14px;align-items:flex-start;flex-wrap:wrap}.corrective-link a{width:100%;justify-content:center}}
.resident-onboarding{border-top:1px solid var(--line);padding:22px}.resident-onboarding .section-title{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.resident-onboarding .section-title p{margin:0 0 14px auto;color:var(--muted);font-size:11px}.onboarding-list{display:grid;gap:8px}.onboarding-list article{display:grid;grid-template-columns:30px minmax(180px,.85fr) minmax(340px,1.15fr);align-items:center;gap:12px;border:1px solid var(--line);border-radius:9px;padding:11px;background:#fff}.onboarding-list article>div{display:grid;gap:3px}.onboarding-list article small,.onboarding-list article p{margin:0;color:var(--muted);font-size:10px}.onboarding-list form{display:grid;grid-template-columns:1fr 116px auto;gap:7px;align-items:start}.onboarding-list select{min-height:36px}.onboarding-list textarea{min-height:36px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font:inherit;resize:vertical}.onboarding-list form button{min-height:36px}.onboarding-check{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#edf1f2;color:var(--muted);font-weight:900}.onboarding-check.complete{background:#dff1e7;color:#24694e}.onboarding-check.waived{background:#fff1d7;color:#8d641f}@media(max-width:780px){.onboarding-list article{grid-template-columns:30px 1fr}.onboarding-list form{grid-column:1/-1;grid-template-columns:1fr}.resident-onboarding .section-title p{margin-left:0;width:100%}}
.payroll-deadline{display:flex;align-items:center;gap:16px;border:1px solid #c5dae3;border-left:5px solid var(--blue);border-radius:11px;background:#eef7fa;padding:17px 19px;margin-bottom:18px}.payroll-deadline.due{border-left-color:var(--gold);background:#fff8e8}.payroll-deadline>span{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:10px;background:var(--navy);color:#fff;font-size:11px;font-weight:900;letter-spacing:.1em}.payroll-deadline>div{flex:1}.payroll-deadline p{margin:3px 0 0;color:var(--muted)}.payroll-deadline>a{color:var(--blue);font-size:12px;font-weight:800;text-decoration:none}.timesheet-metrics{grid-template-columns:repeat(4,1fr)}.timesheet-review-list{display:grid;gap:14px;padding:16px}.timesheet-review-card{border:1px solid var(--line);border-radius:11px;padding:18px}.timesheet-review-card>header{display:flex;align-items:center;justify-content:space-between;gap:14px}.timesheet-review-card>header>div{display:flex;align-items:center;gap:11px}.timesheet-review-card header span>strong,.timesheet-review-card header span>small{display:block}.timesheet-review-card header small{color:var(--muted)}.timesheet-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}.timesheet-numbers>div{display:grid;border:1px solid var(--line);border-radius:9px;background:var(--canvas);padding:13px}.timesheet-numbers small{color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.timesheet-numbers strong{font-size:20px}.timesheet-numbers span{font-size:10px;color:var(--muted)}.timesheet-numbers .good{color:var(--green)}.timesheet-numbers .warning{color:var(--gold)}.employee-attestation,.returned-note{border-left:4px solid var(--blue);background:var(--ice);padding:12px 15px;margin:12px 0}.employee-attestation small{color:var(--muted);font-weight:800}.employee-attestation p,.returned-note p{margin:3px 0}.timesheet-decision{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;border-top:1px solid var(--line);padding-top:15px}.timesheet-decision>div{display:flex;gap:8px}.timesheet-history{margin-top:18px}.table-ref{display:block;margin-top:3px;color:var(--muted)}.employee-week{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(120deg,var(--navy),var(--navy-2));color:#fff;border-radius:13px;padding:27px 30px}.employee-week h2{margin:7px 0}.employee-week p{margin:0;color:#cfe0e7}.employee-week .pill{background:rgba(255,255,255,.16);color:#fff}.employee-totals{margin:16px 0}.employee-submit form{padding:22px}.returned-note{margin:20px 22px 0;border-left-color:var(--gold);background:#fff7e8}.attestation{display:flex;grid-template-columns:none;align-items:flex-start;gap:9px}.attestation input{width:18px;min-height:18px;margin-top:2px}.pill.submitted{background:#fff0d6;color:#865b18}.pill.returned{background:#f8e4e4;color:#944545}.pill.draft{background:#edf1f2;color:#52666f}button:disabled{cursor:not-allowed;opacity:.5;transform:none!important}@media(max-width:900px){.timesheet-numbers,.timesheet-metrics{grid-template-columns:repeat(2,1fr)}.timesheet-decision{grid-template-columns:1fr}.timesheet-decision>div{justify-content:flex-end}}@media(max-width:560px){.payroll-deadline{align-items:flex-start;flex-wrap:wrap}.payroll-deadline>a{width:100%;padding-left:62px}.timesheet-numbers{grid-template-columns:1fr 1fr}.timesheet-decision>div{display:grid}.employee-week{align-items:flex-start;flex-direction:column}}
.ac8-dialog{max-height:85vh;overflow:auto}.ac8-body p{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 12px}.ac8-body p:last-child{margin-bottom:0;font-weight:650;color:var(--ink)}
.recovery-codes{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.recovery-codes code{background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 10px;text-align:center;font-size:13px;letter-spacing:.5px}
.sidebar nav a .nav-icon{width:22px;height:22px;display:grid;place-items:center;flex:0 0 22px;color:#9fc1ce}.sidebar nav a .nav-icon svg{width:17px;height:17px;stroke-width:1.8}.sidebar nav a{display:flex;align-items:center;gap:11px}.sidebar nav a.active .nav-icon{color:#2f7898}.record-row .pill,.work-inbox-item .pill{white-space:nowrap}.pill.new,.pill.received{background:#e8f3f7;color:#246780}.pill.reviewing,.pill.submitted{background:#fff1d8;color:#8b601b}.pill.contacted,.pill.assigned,.pill.in_progress{background:#e9eefb;color:#425d9d}.pill.enrolled,.pill.active,.pill.approved,.pill.completed{background:#e4f3ea;color:#2a7350}.pill.closed{background:#edf0f2;color:#52646d}.pill.overdue,.pill.needs_assignment{background:#f9e3e3;color:#9b4040}.work-inbox-item{border-left:3px solid transparent;padding-left:17px}.work-inbox-item h3{font-size:16px;line-height:1.3}.workflow-filters{background:#f7fafb;border:1px solid var(--line);border-radius:12px}.workflow-tabs a{font-weight:750;font-size:12px}.workflow-board-card{background:#fff;box-shadow:0 3px 10px rgba(18,47,59,.04)}
/* Command-center refresh: stronger visual separation and more legible work states. */
body.portal-page{background:#eef3f5}.portal-page .workspace-head{background:#fff;border-bottom:1px solid #d6e1e5}.portal-page .content{background:linear-gradient(180deg,#f7fafb 0,#eef3f5 460px);padding-top:28px}.portal-page .sidebar{background:#102f3d;box-shadow:8px 0 24px rgba(16,47,61,.08)}.portal-page .sidebar nav a{border:1px solid transparent;color:#d8e7eb;font-weight:700}.portal-page .sidebar nav a:hover{background:#1b4657;border-color:#2b6072}.portal-page .sidebar nav a.active{background:#fff;color:#123746;border-color:#c9dce3;box-shadow:0 5px 16px rgba(4,28,38,.22)}.portal-page .sidebar nav .nav-section{margin-top:19px;color:#8bb5c5;font-size:10px;letter-spacing:.16em}.portal-page .workspace-context h1{font-size:24px;font-weight:850}.portal-page .welcome{background:linear-gradient(120deg,#163b4b 0,#2b6174 58%,#4b8090 100%);border:0;min-height:205px;display:flex;align-items:center;box-shadow:0 14px 35px rgba(19,60,75,.16)}.portal-page .welcome h2{font-size:clamp(34px,4vw,52px);letter-spacing:-.045em}.portal-page .welcome p{font-size:16px;color:#e4f1f4}.portal-page .welcome .primary,.portal-page .welcome a{background:#fff;color:#123746;border:0;box-shadow:0 6px 16px rgba(0,0,0,.12)}.portal-page .overview-grid,.portal-page .two-column{gap:20px}.portal-page .panel,.portal-page .metric-card{background:#fff;border:1px solid #d6e1e5;box-shadow:0 5px 18px rgba(22,47,59,.055)}.portal-page .panel-head{background:#fff}.portal-page .metric-card{min-height:124px;padding:20px;border-radius:14px}.portal-page .metric-card small{font-size:11px;font-weight:800;color:#5b7480;text-transform:uppercase;letter-spacing:.05em}.portal-page .metric-card strong{font-size:34px;margin-top:8px}.portal-page .metric-icon{width:42px;height:42px;border-radius:12px}.portal-page .priority-panel,.portal-page .action-center{border-top:4px solid #4b91aa}.portal-page .record-row{min-height:76px;padding:12px 18px}.portal-page .record-row:hover{background:#f1f8fa}.portal-page .record-row.selected{background:#e8f4f7;box-shadow:inset 4px 0 #3a8aa5}.portal-page .quick-grid a{border:1px solid #d4e1e5;background:#fbfdfe;border-radius:12px;padding:17px;transition:.18s}.portal-page .quick-grid a:hover{transform:translateY(-2px);border-color:#7eb5c5;box-shadow:0 8px 18px rgba(22,47,59,.08)}.portal-page .quick-grid a>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#e8f3f7;color:#2d7894;margin-bottom:11px}.portal-page .quick-grid strong{font-size:14px}.portal-page .page-actions .primary{padding:12px 17px}.portal-page .command-trigger{border:1px solid #d3e0e4;background:#f7fbfc;box-shadow:inset 0 1px 0 #fff}.portal-page .operations-status{border:1px solid #cfe0e4;background:#fff;box-shadow:0 3px 10px rgba(22,47,59,.04)}
.ac8-dialog .panel-head{align-items:center;gap:14px}.ac8-logo{width:56px;height:56px;object-fit:contain;flex:0 0 auto}
dialog:not([open]){display:none}

/* Resident workspace: clearer facility context, directory, and useful landing state. */
.resident-workspace{grid-template-columns:minmax(390px,.92fr) minmax(500px,1.08fr);gap:20px;align-items:stretch}
.resident-page-intro{align-items:center;margin-bottom:16px}.resident-page-intro>div{min-width:0}.resident-page-intro h2{letter-spacing:-.035em}.resident-intro-context{display:flex;align-items:center;gap:10px;width:max-content;max-width:100%;margin-top:14px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:#fff}.resident-facility-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#eaf3f6;color:var(--blue);font-size:20px}.resident-intro-context>span:nth-child(2){display:grid;min-width:120px}.resident-intro-context small{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em}.resident-intro-context strong{font-size:12px}.resident-intro-context .home-switcher{margin-left:5px}
.resident-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.resident-summary article{display:flex;align-items:center;gap:11px;min-width:0;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(24,55,70,.025)}.resident-summary article>div{display:grid;min-width:0}.resident-summary small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.resident-summary strong{font-size:20px;line-height:1.2;font-variant-numeric:tabular-nums}.resident-summary-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:#eaf3f6;color:var(--blue);font-weight:850}.resident-summary-icon.active{background:#e7f4ec;color:#287457}.resident-summary-icon.intake{background:#fff5e3;color:#94661c}.resident-summary-icon.unassigned{background:#f0eff8;color:#68639c}
.resident-directory{top:92px;overflow:hidden}.resident-directory>.panel-head{display:grid;gap:12px;padding:18px 19px}.resident-directory>.panel-head>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.resident-directory>.panel-head .kicker{font-size:9px}.resident-directory>.panel-head h2{margin:0;font-size:17px}.resident-filter-controls{justify-content:space-between;align-items:center;gap:7px}.resident-filter-controls .segmented{background:#f8fafb}.resident-filter-controls .segmented a{padding:7px 10px;font-size:10px}.resident-grid{display:grid;gap:3px;max-height:min(66vh,710px);overflow:auto;padding:8px}.resident-card{min-width:0;min-height:68px;padding:10px;border:1px solid transparent;border-radius:9px;transition:background .15s,border-color .15s}.resident-card:hover{background:#f5f9fa;border-color:#e3ecef}.resident-card.selected{background:#edf5f8;border-color:#c6dbe4;box-shadow:inset 3px 0 var(--blue)}.resident-card>span:nth-child(2){min-width:0}.resident-card>span:nth-child(2) strong{overflow:hidden;color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:12px}.resident-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.resident-card .pill{font-size:9px}.resident-avatar{width:40px;height:40px;border-radius:10px;background:#173b4b}
.resident-welcome-panel{display:grid;place-items:center;min-height:0;padding:0}.resident-welcome{width:min(100%,760px);padding:clamp(28px,4vw,54px);text-align:center}.resident-welcome-art{position:relative;display:grid;place-items:center;width:76px;height:76px;margin:0 auto 20px;border:1px solid #cbdfe6;border-radius:21px;background:linear-gradient(145deg,#edf6f8,#fff);color:#2f7692}.resident-welcome-art span{font-size:35px}.resident-welcome-art i,.resident-welcome-art b{position:absolute;width:8px;height:8px;border-radius:50%;background:#6da9bd}.resident-welcome-art i{top:10px;right:12px}.resident-welcome-art b{bottom:12px;left:10px;width:6px;height:6px;background:#c4aa63}.resident-welcome>.kicker{color:#4d8295}.resident-welcome h2{margin:8px 0;font-size:clamp(24px,3vw,34px);letter-spacing:-.035em}.resident-welcome>p{max-width:560px;margin:0 auto;color:var(--muted);font-size:13px;line-height:1.65}.resident-welcome>p strong{color:var(--ink)}.resident-welcome-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:28px 0 22px;text-align:left}.resident-welcome-guide>div{display:grid;gap:5px;padding:13px 12px;border:1px solid var(--line);border-radius:9px;background:#fbfcfc}.resident-welcome-guide>div>span{color:#46829a;font-size:9px;font-weight:900;letter-spacing:.08em}.resident-welcome-guide strong{font-size:11px}.resident-welcome-guide small{color:var(--muted);font-size:10px;line-height:1.4}.resident-welcome-hint{display:flex!important;align-items:center;justify-content:center;gap:7px;margin-top:4px!important;font-size:11px!important}.resident-welcome-hint span{color:var(--blue);font-size:16px}
@media(max-width:1000px){.resident-workspace{grid-template-columns:1fr}.resident-directory{position:static}.resident-grid{max-height:420px}.resident-welcome-panel{min-height:360px}.resident-page-intro{align-items:flex-start}.resident-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.resident-page-intro{flex-direction:column;align-items:stretch}.resident-page-intro>.button{align-self:flex-start}.resident-intro-context{width:100%;flex-wrap:wrap}.resident-intro-context .home-switcher{margin:5px 0 0;width:100%}.resident-intro-context .home-switcher a{flex:1;text-align:center}.resident-summary{gap:8px}.resident-summary article{padding:10px}.resident-summary-icon{width:30px;height:30px;flex-basis:30px}.resident-filter-controls{width:100%;justify-content:flex-start;flex-wrap:wrap}.resident-filter-controls .segmented{max-width:100%}.resident-filter-controls .segmented a{padding:7px 8px}.resident-welcome{padding:28px 18px}.resident-welcome-guide{grid-template-columns:1fr;text-align:left;margin:20px 0}.resident-welcome-guide>div{grid-template-columns:30px 1fr;align-items:baseline}.resident-welcome-guide>div>span{grid-row:1/3}.resident-detail{min-height:0}}
