#staff-list, #staff-details { display: grid; gap: 12px; }
.staff-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 40rem; }
.staff-bar input { flex: 1 1 12rem; min-width: 0; font-size: 16px; }
.staff-bar .staff-depot { flex: 0 1 9rem; }
.staff-bar .sign-out { flex: 0 0 auto; height: 40px; }
.staff-bar .sign-out.active { background: var(--nav-active); color: var(--primary); font-weight: 600; }
.weighed-tabs button.add-plus { border: 0; background: transparent; color: var(--primary); font-size: 1.75rem; font-weight: 400; line-height: 1; padding: 0 10px; }
.weighed-tabs button.add-plus:hover { opacity: 0.7; }
.weighed-tabs button.add-plus:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.staff-filters { max-width: 32rem; margin-bottom: 0; }
.staff-fields { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.staff-form { grid-template-columns: minmax(0, 1fr); }
.staff-form fieldset { grid-template-columns: minmax(0, 1fr); }
.staff-form input[type="date"] { max-width: 12rem; }
.staff-form .two-col input { max-width: 8rem; }
.week-grid { display: grid; gap: 8px; }
.week-day { display: grid; gap: 4px; }
.week-times { display: flex; align-items: center; gap: 8px; color: var(--muted); padding-left: 26px; }
.staff-form .week-times input { flex: 1 1 0; width: auto; max-width: 7.5rem; min-width: 0; padding: 0 8px; }
.staff-form fieldset { display: grid; gap: 12px; }
.staff-form .stock-actions .primary { padding: 0 16px; }
.staff-filters .stock-actions .sign-out { height: 40px; }
.staff-name { overflow-wrap: anywhere; }
.staff-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); }
.staff-status { display: flex; flex-wrap: wrap; gap: 6px; }
.staff-open { width: 100%; }
.staff-login { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.875rem; }
.staff-login.yes, .login-note.yes { color: hsl(142, 70%, 30%); font-weight: 600; }
html[data-theme="dark"] .staff-login.yes, html[data-theme="dark"] .login-note.yes { color: hsl(142, 70%, 65%); }
.email-row { display: flex; align-items: center; gap: 8px; }
.staff-form .email-row input { flex: 1 1 auto; width: auto; min-width: 0; }
.min-cover-line { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--nav-active); font-size: 0.875rem; font-weight: 500; }
.buddy-dept { color: var(--muted); font-size: 0.85rem; }
.buddy-dept::before { content: "· "; }
.staff-form .buddy-filter { width: 100%; max-width: 20rem; font-size: 16px; }
.login-note { flex: 0 1 auto; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 480px) {
    .email-row { flex-wrap: wrap; gap: 4px 8px; }
    .staff-form .email-row input { flex-basis: 100%; }
    .week-times { padding-left: 0; }
    .week-day { grid-template-columns: minmax(0, 1fr); }
}
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--page);
    border: 1px solid var(--border);
    color: var(--muted);
}
.badge.holiday { background: hsl(142, 70%, 92%); border-color: hsl(142, 60%, 40%); color: hsl(142, 70%, 22%); }
html[data-theme="dark"] .badge.holiday { background: hsl(142, 40%, 18%); color: hsl(142, 70%, 75%); }

@media (max-width: 767px) {
    .staff-meta span + span::before { content: "· "; }
    .staff-status:empty { display: none; }
}

@media (min-width: 768px) {
    .staff-grid .data-head,
    .staff-grid .data-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 6rem 6rem 8rem 11rem; }
    .staff-login .login-icon { font-size: 1.1rem; }
    .staff-login .login-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .staff-meta { display: contents; color: var(--foreground); }
    .staff-open { width: auto; }
    .staff-form { max-width: 44rem; }
    .staff-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .week-day { grid-template-columns: 9rem minmax(0, 1fr); align-items: center; }
    .week-times { padding-left: 0; max-width: 20rem; }
}
