@font-face { font-family: "PetGenes UI"; src: url("workspace-icons.woff2") format("woff2"); font-display: block; }
.work-icon { display: inline-block; flex: none; font: normal 1em/1 "PetGenes UI"; speak: never; -webkit-font-smoothing: antialiased; }
.work-icon.icon-folder2-open::before { content: "\f3d8"; }
.work-icon.icon-clipboard2-plus::before { content: "\f72e"; }
.work-icon.icon-flask::before { content: "\f90a"; }
.work-icon.icon-clock-history::before { content: "\f292"; }
.work-icon.icon-inbox::before { content: "\f42d"; }
.work-icon.icon-hospital::before { content: "\f774"; }
.work-icon.icon-bell::before { content: "\f18a"; }
.work-icon.icon-chat-square-text::before { content: "\f264"; }
.work-icon.icon-book::before { content: "\f194"; }
.work-icon.icon-sliders::before { content: "\f56b"; }
.work-icon.icon-people::before { content: "\f4d0"; }
.work-icon.icon-box-arrow-up-right::before { content: "\f1c5"; }
.work-icon.icon-person::before { content: "\f4e1"; }
.work-icon.icon-file-earmark-medical::before { content: "\f373"; }
.work-icon.icon-arrow-right::before { content: "\f138"; }
.work-icon.icon-search::before { content: "\f52a"; }
.work-icon.icon-journal-medical::before { content: "\f440"; }

/* Fixed staff navigation and the narrow-screen drawer share one surface. */
.portal-workspace .staff-sidebar {
  gap: 15px; padding: 18px 14px 12px; border: 0;
  background: radial-gradient(ellipse at 4% 0%,#204f73,transparent 38%),linear-gradient(160deg,#123551,#102b47 55%,#0e263e);
  box-shadow: 4px 0 22px #0b2c4914; color: #fff;
}
.staff-sidebar .system-brand {
  flex: none; width: 100%; height: auto; min-height: 75px; margin: 0;
  padding: 0 6px 15px; border-bottom: 1px solid #ffffff29; display: flex;
  align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 6px;
}
.staff-sidebar .system-brand img { width: 82px; height: 53px; filter: brightness(0) invert(1); }
.staff-sidebar .system-brand > span {
  border-left: 1px solid #ffffff45; padding-left: 9px; white-space: nowrap;
  color: #d5e7f5; font-size: 13px; font-weight: 560;
}
.staff-sidebar nav { gap: 11px; padding: 2px; scrollbar-color: #7a94aa transparent; }
.staff-sidebar .staff-nav-group { display: grid; gap: 2px; }
.staff-sidebar .nav-section {
  color: #b1c8dc; font-size: 12px; font-weight: 550; letter-spacing: .055em;
  margin: 0 10px 3px; padding: 0;
}
.portal-workspace .staff-sidebar nav a {
  min-height: 36px; padding: 7px 11px; gap: 12px; justify-content: flex-start;
  border-radius: 8px; border: 1px solid transparent; line-height: 1.45;
  color: #ecf4fb; background: transparent; box-shadow: none; text-decoration: none;
}
.staff-sidebar nav .work-icon { font-size: 17px; color: #bad2e6; }
.portal-workspace .staff-sidebar nav a:hover { background: #244967; }
.portal-workspace .staff-sidebar nav a.active {
  background: linear-gradient(105deg,#2c6590,#285379);
  border-color: #87b8d94f; color: white; font-weight: 680;
}
.staff-sidebar nav a.active .work-icon { color: #fff; }
.staff-sidebar :focus-visible { outline: 2px solid #a8d7ff; outline-offset: -2px; }
.portal-workspace .staff-sidebar .sidebar-close {
  background: #224968; color: white; border-color: #7895aa; min-height: 44px;
}
.portal-workspace .staff-sidebar nav .nav-site-link { border-top: 1px solid #5d7b93; border-radius: 0; margin-top: 2px; color: #c9deee; }
.portal-workspace .staff-sidebar .sidebar-user {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 14px;
  margin-top: auto; padding: 13px 8px 0; border: 0; border-top: 1px solid #536f86; border-radius: 0;
  background: transparent; box-shadow: none; backdrop-filter: none;
}
.staff-sidebar .staff-identity { grid-column: 1/-1; display: flex; align-items: center; gap: 9px; min-width: 0; }
.staff-sidebar .staff-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; color: #d5e7f5; background: #284964; font-size: 20px; }
.staff-sidebar .staff-account { min-width: 0; }
.staff-sidebar .staff-account strong { display: block; color: #fff; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.staff-sidebar .staff-account .role-pill { color: #c2d9e9; background: transparent; padding: 0; font-size: 12px; }
.portal-workspace .staff-sidebar .sidebar-user :is(a,button) {
  display: inline-flex; min-height: 36px; align-items: center; color: #c2d9e9; font-size: 13px; padding: 0;
}
.staff-sidebar .sidebar-user a[aria-current] { color: white; text-decoration: underline; }
.portal-workspace .staff-mobile-header {
  background: linear-gradient(115deg,#123551,#173f60);
  color: white; border: 0; box-shadow: 0 3px 14px #102b4e20;
}
.portal-workspace .staff-mobile-header .system-brand { width: auto; color: white; gap: 10px; }
.staff-mobile-header .system-brand-logo { width: 32px; filter: brightness(0) invert(1); }
.staff-mobile-header .menu-toggle { border: 1px solid #7c99ae; background: #ffffff0c; color: white; min-height: 44px; }
@media (pointer:coarse),(max-width:800px) {
  .portal-workspace .staff-sidebar nav a,.portal-workspace .staff-sidebar .sidebar-user :is(a,button) { min-height: 44px; }
}
@media(max-height:740px) and (min-width:801px) {
  .portal-workspace .staff-sidebar { gap: 8px; padding-top: 10px; }
  .staff-sidebar .system-brand { min-height: 58px; padding-bottom: 8px; }
  .staff-sidebar nav { gap: 7px; }
}
/* Staff sign-in: microscopic imagery frames the brand, all inputs stay on paper. */
.portal-workspace .staff-login {
  width: min(1100px,calc(100% - 64px)); margin: 0 auto;
  padding: clamp(20px,4vh,52px) 0 54px; color: var(--pg-ink);
}
.staff-login .staff-login-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: clamp(24px,5vh,60px); gap: 16px;
}
.staff-login .staff-login-logo img { display: block; width: 112px; height: 58px; }
.portal-workspace .staff-login .auth-exit {
  position: static; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  border: 0; padding: 0 4px; background: transparent; color: var(--pg-blue-hover); box-shadow: none; clip-path: none;
}
.staff-login .login-layout {
  display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1fr);
  border-radius: 24px; border: 1px solid var(--work-rule); background: white;
  box-shadow: 0 24px 64px -34px #123a5b5c;
}
.portal-workspace .staff-login .login-brand {
  position: relative; min-width: 0; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(28px,3.8vw,56px); border-radius: 23px 0 0 23px; border: 0;
  background: linear-gradient(20deg,#0c2c49 2%,#173955ed 26%,#17395e99 62%,#2b527d36),
    url("diagnostic-field.webp") 52% 35%/cover;
}
.staff-login .login-brand::before {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  width: 105%; aspect-ratio: 1; left: 30%; top: -28%;
  border: 2px solid #d6e3ef5c; box-shadow: 0 0 0 16px #cedbe820, 0 0 0 32px #cfdee817;
}
.portal-workspace .staff-login .login-brand h1 {
  margin: 0; color: white; font: 600 clamp(36px,4.6vw,69px)/1.18 "Songti SC","STSong",serif;
  letter-spacing: -.045em; text-shadow: 0 2px 12px #0c28436b;
}
.staff-login-content { min-width: 0; padding: clamp(30px,4.3vw,64px); }
.portal-workspace .staff-login .auth-card {
  display: grid; width: 100%; max-width: none; margin: 0; padding: 0; gap: 16px;
  border: 0; border-radius: 0; clip-path: none; background: white; box-shadow: none; backdrop-filter: none;
}
.staff-login .form-heading { margin-bottom: 7px; }
.staff-login .form-heading h2 { font-size: clamp(27px,2.5vw,36px); line-height: 1.3; letter-spacing: -.03em; }
.staff-login .form-heading > span { display: block; margin-top: 8px; color: var(--pg-muted); }
.staff-login :is(.auth-card label,.staff-password-field > label) { color: var(--pg-ink); font-weight: 650; }
.staff-password-field { display: grid; gap: 8px; }
.staff-password-control { position: relative; }
.staff-login .auth-card input:not([type=hidden]) { width: 100%; height: 47px; font-size: 16px; border: 1px solid #9fB3c3; border-radius: 8px; background: white; }
.staff-password-control:has(button:not([hidden])) input { padding-right: 64px; }
.staff-password-control button { position: absolute; inset: 2px 3px 2px auto; min-width: 52px; border: 0; border-radius: 5px; color: var(--pg-blue-hover); background: none; font: inherit; cursor: pointer; }
.staff-password-control button:hover { background: var(--pg-blue-soft); }
.staff-login .auth-card .primary { display: flex; justify-content: space-between; align-items: center; padding-inline: 20px; min-height: 48px; }
.staff-login .security-note { margin: 0; color: var(--pg-muted); font-size: 13px; }
.staff-login .login-feedback { margin: 0; padding: 10px 14px; border-left: 3px solid var(--pg-blue); background: var(--pg-blue-soft); }
.staff-login .login-feedback.error { color: var(--pg-red); border-color: var(--pg-red); background: var(--pg-red-soft); }
.staff-family-link { margin-top: 24px; padding: 14px 0 0; border-top: 1px solid var(--work-rule); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; }
.staff-family-link strong { color: var(--pg-blue-hover); font-size: 15px; }
.staff-family-link span { grid-column: 1; color: var(--pg-muted); font-size: 13px; }
.staff-family-link i { grid-column: 2; grid-row: 1/3; align-self: center; color: var(--pg-blue); font: 20px/1 sans-serif; }
@media (max-width:800px) {
  .portal-workspace .staff-login { width: min(600px,calc(100% - 32px)); padding: 12px 0 32px; }
  .staff-login .staff-login-top { margin-bottom: 13px; }
  .staff-login .staff-login-logo img { width: 90px; height: 48px; }
  .staff-login .login-layout { grid-template-columns: minmax(0,1fr); border-radius: 18px; }
  .portal-workspace .staff-login .login-brand { padding: 23px; min-height: 118px; border-radius: 17px 17px 0 0; background-position: center, 62% 34%; }
  .portal-workspace .staff-login .login-brand h1 { font-size: 30px; }
  .staff-login .login-brand h1 br { display: none; }
  .staff-login-content { padding: 24px clamp(18px,4vw,32px); }
}
