.staff-page { max-width: 1440px; margin: 0 auto; }
.staff-page [hidden] { display: none !important; }
.staff-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-bottom: 31px; }
.staff-workspace-head h1 { margin: 0; color: var(--text); font: 600 46px/1.06 var(--font-display); overflow-wrap: anywhere; }
.staff-eyebrow { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.staff-page .staff-button { min-height: 39px; padding: 10px 17px; border-radius: 4px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.staff-page .staff-button.primary { background: var(--accent-deep); color: var(--on-accent); }
.staff-register .staff-register-tools { align-items: flex-end; gap: 26px; padding: 0; border: 0; }
.staff-register-search, .staff-register-filter { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 11px; }
.staff-register-search { flex: 1; max-width: 520px; min-width: 170px; }
.staff-register .staff-register-tools :is(input,select) { min-width: 0; min-height: 36px; padding: 7px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; outline-offset: 4px; }
.staff-register .staff-register-tools input { flex: none; width: 100%; }
.staff-register .staff-register-tools select { min-width: 150px; padding-right: 28px; }
.staff-register .staff-register-tools :is(input,select):focus-visible { outline: 2px solid var(--accent-bright); }
.staff-register .staff-refresh { min-height: 34px; margin-left: auto; padding: 7px 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.staff-register-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; color: var(--muted); font-size: 12px; }
.staff-register-summary > a { color: var(--text); text-decoration: none; }
.staff-register-summary > a:hover { color: var(--accent-bright); }
.staff-register-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.staff-register-row { display: grid; grid-template-columns: minmax(0,1fr) 210px 30px; align-items: center; gap: 28px; min-height: 94px; padding: 21px 0; border-bottom: 1px solid var(--border); }
.staff-register-person { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.staff-person-name { color: var(--text); font-size: 17px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; text-decoration: none; text-underline-offset: 4px; }
.staff-person-name:hover { color: var(--accent-bright); text-decoration: underline; }
.staff-register-updated { color: var(--muted); font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.staff-register-state { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.staff-page .staff-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 400; }
.staff-page .staff-status::before { content: ''; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.staff-register-availability { color: var(--muted); font-size: 11px; line-height: 1.5; }
.staff-register-open { display: flex; align-items: center; justify-content: center; width: 30px; height: 32px; color: var(--muted); font-size: 17px; text-decoration: none; }
.staff-register-open:hover { color: var(--accent-bright); }
.staff-register .staff-empty { padding: 32px 0 !important; font-size: 13px; }
.staff-workspace .staff-back { margin-bottom: 18px; color: var(--muted); font-size: 12px; text-decoration: none; }
.staff-workspace .staff-back:hover { color: var(--accent-bright); }
.staff-workspace .staff-workspace-head { padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.staff-workspace .staff-workspace-head h1 { font-size: 42px; }
.staff-workbench { display: grid; grid-template-columns: minmax(0,1fr) 260px; align-items: start; gap: 48px; }
.staff-profile-editor, .staff-profile-aside { min-width: 0; }
.staff-profile-editor > h2 { margin: 0 0 22px; color: var(--text); font-size: 15px; font-weight: 500; }
.staff-workspace .staff-form { padding: 0; margin: 0; }
.staff-workspace .staff-form-fields { max-width: none; gap: 22px 24px; }
.staff-workspace .staff-form-fields .field { min-width: 0; gap: 8px; font-size: 12px; }
.staff-workspace .staff-form-fields .field:has([name=name]), .staff-workspace .staff-form-fields .field:has([name=reason]) { grid-column: 1/-1; }
.staff-workspace .staff-form-fields .field:last-child:nth-child(odd) { grid-column: auto; }
.staff-workspace .staff-form-fields .field:has([name=reason]):last-child { grid-column: 1/-1; }
.staff-workspace .staff-form :is(input,select) { width: 100%; min-height: 40px; padding: 10px 11px; border-radius: 4px; font-size: 13px; }
.staff-workspace .staff-form :is(input,select):focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.staff-workspace .staff-form-fields .staff-state-field { margin-top: 5px; }
.staff-workspace .staff-form-actions { justify-content: flex-start; gap: 20px; margin-top: 24px; padding: 20px 0 0; }
.staff-workspace .staff-form-actions > button[type=submit] { min-height: 39px; padding: 10px 17px; border-radius: 4px; font-size: 13px; font-weight: 500; }
.staff-workspace .staff-form-actions > [data-staff-discard] { min-height: 34px; padding: 7px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }
.staff-workspace .staff-form-message { margin-top: 18px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.staff-profile-summary { margin: 0; }
.staff-profile-summary > div { display: flex; flex-direction: column; gap: 9px; margin-bottom: 25px; }
.staff-profile-summary dt, .staff-contact dt { color: var(--muted); font-size: 11px; font-weight: 400; }
.staff-profile-summary dd, .staff-contact dd { margin: 0; color: var(--text); font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.staff-profile-summary .staff-schedule-state dd { font: 500 27px/1.15 var(--font-display); }
.staff-profile-links { display: flex; flex-direction: column; gap: 0; margin-top: 28px; border-top: 1px solid var(--border); }
.staff-profile-links > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 12px; text-decoration: none; }
.staff-profile-links > a:hover { color: var(--accent-bright); }
.staff-profile-links > a > span { color: var(--muted); }
.staff-contact { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; margin: 0; }
.staff-contact > div { display: grid; gap: 8px; }
.staff-workspace .staff-user-link { margin-top: 40px; padding: 25px 0 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.staff-workspace .staff-user-link > header { flex-direction: column; align-items: flex-start; gap: 9px; }
.staff-workspace .staff-user-link h2 { font-size: 15px; font-weight: 500; }
.staff-workspace .staff-user-link fieldset { grid-template-columns: minmax(0,1fr); max-width: none; margin: 22px 0; gap: 20px; }
.staff-workspace .staff-user-link :is(input,select) { width: 100%; min-height: 40px; border-radius: 4px; font-size: 13px; }
.staff-workspace .staff-user-link footer { gap: 12px 20px; }
.staff-workspace .staff-user-link footer > a { width: 100%; margin: 0 0 6px; }
.staff-workspace .staff-user-link footer > button { min-height: 34px; border-radius: 4px; font-size: 12px; }
.staff-workspace .staff-user-link footer > [data-staff-link-discard] { padding-left: 0; border: 0; color: var(--muted); background: transparent; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }
.staff-workspace .staff-link-message { overflow-wrap: anywhere; }
.staff-workbench.staff-workbench-summary { grid-template-columns: minmax(0,1fr); }
.staff-workbench-summary .staff-profile-editor:has(> [data-staff-user-link-slot]:empty) { display: none; }
.staff-workbench-summary .staff-profile-aside { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 48px; }
.staff-workbench-summary .staff-profile-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 28px; }
.staff-workbench-summary .staff-profile-links { margin-top: 0; }
@media (max-width: 1100px) {
  .staff-workbench { grid-template-columns: minmax(0,1fr) 220px; gap: 28px; }
  .staff-register-row { grid-template-columns: minmax(0,1fr) 185px 26px; gap: 20px; }
}
@media (max-width: 850px) {
  .staff-workbench { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .staff-profile-aside { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 24px; padding-top: 25px; border-top: 1px solid var(--border); }
  .staff-profile-links { margin-top: 0; }
  .staff-workspace .staff-form-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .staff-workbench-summary .staff-profile-aside { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 0; border: 0; }
}
@media (max-width: 600px) {
  .staff-workspace-head { flex-wrap: wrap; align-items: flex-start; gap: 18px; margin-bottom: 27px; }
  .staff-workspace-head h1, .staff-workspace .staff-workspace-head h1 { font-size: 36px; }
  .staff-register .staff-register-tools { gap: 16px; }
  .staff-register-search { flex-basis: 100%; max-width: none; }
  .staff-register-row { grid-template-columns: minmax(0,1fr) 24px; gap: 12px; padding: 20px 0; }
  .staff-register-state { grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: 9px 16px; align-items: center; }
  .staff-register-open { grid-column: 2; grid-row: 1/3; }
  .staff-person-name { font-size: 16px; }
  .staff-register-summary { align-items: flex-start; }
  .staff-workspace .staff-form-fields, .staff-contact { grid-template-columns: minmax(0,1fr); }
  .staff-workspace .staff-form-fields .field { grid-column: 1/-1; }
  .staff-workspace .staff-form-actions { gap: 13px; }
  .staff-profile-aside { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .staff-profile-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 20px; }
}
