.staff-home,
.staff-group-toggle,
.staff-account-toggle,
.staff-mobile-nav,
.staff-account-menu button {
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}
.staff-home { align-self: flex-start; border-radius: 6px; }
.staff-home:hover { color: #d9eaff; }
.sidebar .navigation { overflow-y: auto; min-height: 0; }
.sidebar #staff-navigation { display: grid; gap: 5px; }
.staff-group-toggle, .staff-overview {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; border-radius: 7px; font-size: 15px; font-weight: 550; color: #d5e1ed;
}
.staff-group-toggle:hover, .staff-group-toggle[aria-expanded=true] { background: #20394e; color: #fff; }
.staff-chevron { width: 15px; height: 15px; flex: none; transition: transform .12s ease; }
.staff-group-toggle .staff-chevron { margin-left: auto; }
.staff-group-toggle[aria-expanded=true] .staff-chevron, .staff-account-toggle[aria-expanded=true] .staff-chevron { transform: rotate(180deg); }
.staff-subnav { display: grid; gap: 2px; padding: 4px 0 4px 13px; margin: 2px 0 4px 20px; border-left: 1px solid #3e5368; }
.staff-subnav[hidden], .staff-account-menu[hidden] { display: none; }
.staff-subnav .nav-link { min-height: 37px; padding: 7px 12px; font-size: 14px; }
.staff-mobile-nav { display: none; }
.staff-account { position: relative; margin-left: auto; min-width: 0; }
.staff-account-toggle { display: flex; align-items: center; gap: 8px; min-height: 40px; max-width: 100%; padding: 3px 8px; border-radius: 6px; }
.staff-name { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-account-toggle:hover, .staff-account-toggle[aria-expanded=true] { background: #edf2f8; }
.staff-account-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 8; width: 226px; max-width: calc(100vw - 32px); padding: 6px; background: white; border: 1px solid #cbd6e1; border-radius: 9px; box-shadow: 0 8px 24px #14283f16; }
.staff-menu-identity { display: grid; border-bottom: 1px solid var(--line); padding: 7px 9px 11px; margin-bottom: 4px; overflow-wrap: anywhere; }
.staff-menu-identity small { color: var(--muted); }
.staff-account-menu button { display: block; width: 100%; padding: 8px 10px; border-radius: 5px; }
.staff-account-menu button:hover, .staff-account-menu button:focus-visible { background: #edf3fa; }
.staff-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; gap: 18px; }
.staff-profile-grid .panel { min-width: 0; margin: 0; }
.staff-facts { margin: 0; padding: 7px 22px; }
.staff-facts div { display: grid; grid-template-columns: minmax(72px,28%) 1fr; gap: 12px; padding: 12px 0; }
.staff-facts div + div { border-top: 1px solid var(--line); }
.staff-facts dt { color: var(--muted); }
.staff-facts dd { margin: 0; overflow-wrap: anywhere; }
.staff-password-form { display: grid; gap: 13px; padding: 18px 22px; }
.staff-password-form label { display: grid; gap: 5px; }
.staff-password-form .btn { justify-self: start; }
.staff-password-form .error:empty { display: none; }
.staff-profile-note { color: var(--muted); margin: 0; padding: 16px 22px; }
.staff-inbox { border: 1px solid var(--line); background: white; border-radius: 10px; padding: 15px 19px 17px; margin: 16px 0; }
.staff-inbox h2 { margin: 0 0 10px; font-size: 16px; }
.staff-inbox nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.staff-inbox a { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; color: #324961; font-size: 14px; }
.staff-inbox a:hover { text-decoration: none; border-color: #7594b9; background: #f6f9fd; }
.staff-inbox strong { font-variant-numeric: tabular-nums; }
.staff-inbox .has-work { color: #204eae; background: #f4f7ff; border-color: #c8d7f1; }
@media(max-width:800px) {
  .sidebar { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 9px 15px; align-items: center; gap: 0 12px; }
  .sidebar .navigation { display: contents; }
  .staff-mobile-nav { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 4px 9px; border: 1px solid #476078; border-radius: 6px; grid-row: 1; grid-column: 2; }
  .sidebar #staff-navigation { display: none; grid-column: 1/-1; padding: 10px 0 0; white-space: normal; }
  .sidebar #staff-navigation.mobile-open { display: grid; }
  .sidebar .rail-foot { display: none; }
  .sidebar:has(#staff-navigation.mobile-open) .rail-foot { display: block; grid-column: 1/-1; border-top: 1px solid #344658; margin-top: 8px; padding: 8px 10px; }
  .sidebar .staff-group-toggle, .sidebar .staff-overview { min-height: 42px; padding: 9px 12px; }
  .staff-subnav .nav-link { min-height: 40px; }
  .staff-subnav .nav-link[aria-current=page] { box-shadow: inset 3px 0 #93c4f3; }
  .staff-profile-grid { grid-template-columns: 1fr; }
  .staff-inbox nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { .staff-chevron { transition: none; } }
