body.staff-portal-active{background:#f3f6f7!important;overflow:auto!important}
.staff-portal-active #root{visibility:hidden!important;position:fixed!important;inset:0!important;pointer-events:none!important}
.staff-portal-active #staff-portal-root{position:relative;z-index:99999;min-height:100vh;font-family:inherit;color:#143642}
#staff-portal-root *{box-sizing:border-box}
#staff-portal-root svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.staff-shell.v29{max-width:100%;min-height:100vh;background:#f3f6f7;padding-bottom:96px}
.staff-head{padding:16px 18px 8px;background:#f3f6f7;position:sticky;top:0;z-index:12}
.top-actions{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.icon-btn,.lang-btn{border:1px solid #d8e2e5;background:#fff;border-radius:18px;padding:11px 15px;color:#195b63;font-weight:800;box-shadow:0 2px 8px rgba(20,54,66,.05)}
.brand-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-top:4px;border-top:1px solid #dce6e8}
.brand-line small{display:block;color:#6d7d86;margin-bottom:4px;font-size:13px}
.brand-line h1{margin:0;font-size:20px;color:#173947}
.brand-line p{margin:6px 0 0;color:#24a6a4;font-size:15px;font-weight:800}
.brand-logo{display:flex;flex-direction:column;align-items:flex-end;gap:4px;color:#6d7d86;font-size:12px;text-align:end}.brand-logo img{width:58px;height:auto;object-fit:contain}
.staff-main{padding:10px 18px 28px}
.notice-bar{margin:8px 0 16px;padding:14px 16px;border-radius:16px;border:1px solid #ead89a;background:#f7efcf;color:#8b6e14;font-weight:800;text-align:center}
.hero-card{display:grid;grid-template-columns:52px 1fr 78px;align-items:center;gap:12px;border-radius:26px;padding:18px;background:linear-gradient(135deg,#155a86,#17a2a1);color:#fff;box-shadow:0 12px 28px rgba(17,70,99,.18)}
.hero-arrow{width:52px;height:52px;border-radius:16px;border:1px solid rgba(255,255,255,.35);display:grid;place-items:center;font-size:22px}
.hero-copy small{display:block;font-size:13px;opacity:.9}.hero-copy h2{margin:6px 0 4px;font-size:30px;line-height:1.3}.hero-copy p{margin:0;font-size:16px;opacity:.94}
.hero-date{width:78px;height:78px;border-radius:24px;background:rgba(255,255,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center}.hero-date b{font-size:34px;line-height:1}.hero-date span{margin-top:6px;font-size:14px}
.section-title{margin:24px 4px 14px;font-size:30px;color:#173947}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.quick-card{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #dde6e8;background:#fff;border-radius:24px;padding:18px 16px;box-shadow:0 2px 8px rgba(18,57,71,.04);text-align:start}.quick-card h3{margin:0 0 6px;font-size:22px;color:#173947}.quick-card p{margin:0;color:#7b8b93;font-size:17px}.qicon{width:68px;height:68px;border-radius:18px;background:#e8f4f2;color:#27a3a1;display:grid;place-items:center;flex:0 0 auto}
.detail-list{display:grid;gap:14px}.detail-card{background:#fff;border:1px solid #dde6e8;border-radius:24px;padding:18px;box-shadow:0 2px 8px rgba(18,57,71,.04)}.detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.mini-icon{width:56px;height:56px;border-radius:18px;background:#e8f4f2;color:#27a3a1;display:grid;place-items:center;flex:0 0 auto;order:2}.detail-head div{flex:1}.detail-card h4{margin:0 0 6px;font-size:22px;color:#173947;line-height:1.4}.detail-card p{margin:0;color:#76868f;font-size:16px;line-height:1.5}.detail-card button{margin-top:18px;width:100%;border:0;border-radius:18px;padding:16px;background:#155a86;color:#fff;font-weight:900;font-size:18px}
.info-banner{background:#fff;border:1px solid #dde6e8;border-radius:22px;padding:18px}.info-banner h3{margin:0 0 6px;font-size:24px}.info-banner p{margin:0;color:#74848d;font-size:15px;line-height:1.7}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.profile-stat{background:#fff;border:1px solid #dde6e8;border-radius:20px;padding:16px}.profile-stat span{display:block;color:#7b8b93;font-size:14px;margin-bottom:7px}.profile-stat b{font-size:17px;color:#173947;line-height:1.5}
.work-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.work-tool{display:flex;align-items:center;gap:12px;border:1px solid #dde6e8;background:#fff;border-radius:20px;padding:16px;text-align:start}.work-tool span{width:48px;height:48px;border-radius:14px;background:#e8f4f2;color:#27a3a1;display:grid;place-items:center;flex:0 0 auto}.work-tool b{font-size:17px;color:#173947;line-height:1.5}
.workflow-list{display:grid;gap:12px}.workflow-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #dde6e8;border-radius:20px;padding:16px}.workflow-list b{display:block;font-size:18px;color:#173947;line-height:1.5}.workflow-list p{margin:6px 0 0;color:#7d8c94;font-size:14px}.pill{border-radius:999px;padding:8px 12px;font-size:13px;font-weight:800;white-space:nowrap}.pill.ready{background:#e6f6ef;color:#2a7b57}.pill.progress{background:#fff4d6;color:#9a6b10}.pill.received{background:#eef3f5;color:#627780}
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:20;background:#fff;border-top:1px solid #dce6e8;display:grid;grid-template-columns:repeat(5,1fr);padding:8px 6px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -4px 14px rgba(18,57,71,.06)}
.bottom-nav button{border:0;background:none;color:#8a98a0;display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px 4px;font-weight:700}.bottom-nav button span{display:grid;place-items:center;color:inherit}.bottom-nav button b{font-size:11px}.bottom-nav button.active{color:#22a0a0}
@media (min-width:900px){.staff-shell.v29{max-width:760px;margin:0 auto;box-shadow:0 0 0 1px #e3ebed,0 16px 50px rgba(18,57,71,.08)}}
@media (max-width:520px){.hero-copy h2{font-size:24px}.hero-copy p{font-size:14px}.hero-date{width:68px;height:68px;border-radius:20px}.hero-date b{font-size:30px}.section-title{font-size:24px}.quick-card h3,.detail-card h4{font-size:18px}.quick-card p,.detail-card p{font-size:14px}.profile-grid,.work-grid,.quick-grid{grid-template-columns:1fr 1fr}.brand-line h1{font-size:18px}.detail-head{align-items:flex-start}.mini-icon,.qicon{width:56px;height:56px}.workflow-list article{align-items:flex-start;flex-direction:column}.pill{align-self:flex-start}}

/* v31 interactive employee workspace */
.work-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px;border-radius:24px;background:linear-gradient(135deg,#155a86,#17a2a1);color:#fff;box-shadow:0 12px 28px rgba(17,70,99,.18)}
.work-hero small{display:block;opacity:.85}.work-hero h2{margin:6px 0 5px;font-size:26px}.work-hero p{margin:0;line-height:1.7;font-size:14px;opacity:.95}.work-hero>span{width:58px;height:58px;border-radius:18px;background:rgba(255,255,255,.14);display:grid;place-items:center;flex:0 0 auto}.work-hero>span svg{width:30px!important;height:30px!important}
.no-clinical{margin:14px 0;padding:13px 15px;border:1px solid #d7e6ea;border-radius:16px;background:#fff;color:#567078;line-height:1.7;font-size:13px}
.small-title{font-size:22px}
.patient-list{display:grid;gap:12px}.patient-row{background:#fff;border:1px solid #dde6e8;border-radius:20px;padding:15px}.patient-main b{display:block;font-size:18px;color:#173947}.patient-main span{display:block;margin-top:5px;color:#7a8b93;font-size:13px}.patient-row>.pill{display:inline-block;margin-top:10px}.row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.row-actions button{border:1px solid #d8e5e8;background:#f8fbfb;color:#205b66;border-radius:12px;padding:9px 10px;font-weight:800;font-size:12px}.row-actions button:hover{background:#eef6f6}
.pill.waiting{background:#eef3f5;color:#61757e}.pill.arrived{background:#e6f6ef;color:#2c7d58}.pill.doctor{background:#e8f0fa;color:#2f6591}
.staff-toast{position:fixed;left:50%;bottom:92px;transform:translate(-50%,18px);opacity:0;pointer-events:none;background:#173f50;color:#fff;border-radius:14px;padding:12px 16px;z-index:50;transition:.2s;box-shadow:0 14px 40px rgba(0,0,0,.18);max-width:min(90vw,480px);text-align:center}.staff-toast.show{opacity:1;transform:translate(-50%,0)}
.work-modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(4,24,33,.45);display:flex;align-items:flex-end;justify-content:center;padding:18px}.work-modal{width:min(100%,620px);max-height:88vh;overflow:auto;background:#fff;border-radius:26px 26px 18px 18px;box-shadow:0 30px 90px rgba(0,0,0,.28)}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border-bottom:1px solid #e2eaed}.modal-head h3{margin:0;font-size:20px;color:#173947}.modal-head button{border:0;background:#eef4f5;color:#536d76;width:38px;height:38px;border-radius:12px;font-size:26px;line-height:1}
.work-modal form{display:grid;gap:8px;padding:18px}.work-modal label{font-weight:800;color:#294c58;font-size:13px;margin-top:4px}.work-modal input,.work-modal select,.work-modal textarea{width:100%;border:1px solid #cfdee2;border-radius:12px;padding:12px 13px;background:#fbfdfd;color:#173947;font:inherit;outline:0}.work-modal textarea{resize:vertical}.modal-note{padding:12px;border-radius:12px;background:#eef6f6;color:#45646d;line-height:1.7}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.modal-actions button{border:0;border-radius:13px;padding:12px;font-weight:900}.modal-actions button:first-child{background:#eef3f5;color:#5f747d}.modal-actions .primary{background:#155a86;color:#fff}
@media(max-width:520px){.work-hero h2{font-size:21px}.work-grid{grid-template-columns:1fr 1fr}.work-tool{padding:12px}.work-tool b{font-size:14px}.work-tool span{width:42px;height:42px}.row-actions button{flex:1 1 calc(50% - 8px)}.work-modal-backdrop{padding:0}.work-modal{border-radius:26px 26px 0 0}}

.contact-card{margin-top:0;background:#fff;border:1px solid #dde6e8;border-radius:24px;padding:18px;box-shadow:0 2px 8px rgba(18,57,71,.04);display:grid;gap:14px}
.contact-line{display:grid;gap:5px;padding-bottom:12px;border-bottom:1px solid #e7eef0}.contact-line:last-of-type{border-bottom:0}.contact-line b{font-size:17px;color:#173947}.contact-line span{font-size:16px;color:#315664;font-weight:800}.contact-line small{font-size:14px;color:#7b8b93}.contact-card a{display:block;text-align:center;text-decoration:none;border-radius:16px;padding:14px;background:#155a86;color:#fff;font-weight:900;font-size:16px}
