.bd-staff {
  --staff-ink: #0b1c24;
  --staff-surface: #f7f7f3;
  --staff-rule: #d2ddda;
  --staff-accent: #446965;
  max-inline-size: 460px;
  min-inline-size: 0;
  margin-inline: auto;
  border: 7px solid var(--staff-ink);
  border-radius: 30px;
  overflow: hidden;
  background: var(--staff-surface);
  color: var(--staff-ink);
  box-shadow: 0 16px 32px #0b1c2424;
}
.bd-staff [hidden] { display: none; }
.bd-staff-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  border-block-end: 1px solid var(--staff-rule);
  background: #ecf1ed;
}
.bd-staff-header img { inline-size: min(28%, 92px); block-size: auto; }
.bd-staff-header div { display: grid; min-inline-size: 0; gap: 3px; }
.bd-staff-header h3 { margin: 0; font-size: 1.025rem; font-weight: 700; line-height: 1.4; }
.bd-staff-header span { color: #40585c; font-size: .78rem; line-height: 1.55; }
.bd-staff-body { padding: 14px 18px 18px; }
.bd-staff-role-group > span,
.bd-staff-person > span,
.bd-staff-assignment label > span {
  display: block;
  margin-block-end: 6px;
  color: #40585c;
  font-size: .8125rem;
  font-weight: 600;
}
.bd-staff-roles, .bd-staff-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-staff button, .bd-staff select {
  min-block-size: 44px;
  max-inline-size: 100%;
  border: 1px solid var(--staff-rule);
  border-radius: 7px;
  background: #fff;
  color: var(--staff-ink);
  font: inherit;
  font-size: .875rem;
}
.bd-staff button {
  padding: 5px 10px;
  line-height: 1.5;
  cursor: pointer;
  text-align: center;
}
.bd-staff button:hover { border-color: var(--staff-accent); }
.bd-staff button:focus-visible, .bd-staff select:focus-visible, .bd-staff a:focus-visible {
  outline: 2px solid var(--staff-accent);
  outline-offset: 2px;
}
.bd-staff-roles button { flex: 1 1 auto; }
.bd-staff-roles button[aria-pressed="true"],
.bd-staff .bd-staff-action {
  border-color: var(--staff-ink);
  background: var(--staff-ink);
  color: #fff;
}
.bd-staff .bd-staff-action:hover { background: #24443f; }
.bd-staff-tabs {
  margin-block: 12px 13px;
  border-block-end: 1px solid var(--staff-rule);
}
.bd-staff-tabs button {
  border: 0;
  border-block-end: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: #40585c;
}
.bd-staff-tabs button[aria-pressed="true"] {
  border-block-end-color: var(--staff-accent);
  color: var(--staff-ink);
  font-weight: 700;
}
.bd-staff-content {
  display: grid;
  min-inline-size: 0;
  min-block-size: 180px;
  align-content: start;
  gap: 10px;
}
.bd-staff-person, .bd-staff-assignment label { min-inline-size: 0; }
.bd-staff select {
  inline-size: 100%;
  padding-inline: 9px;
}
.bd-staff-attendance, .bd-staff-visit, .bd-staff-team li, .bd-staff-metrics div, .bd-staff-empty {
  border: 1px solid var(--staff-rule);
  border-radius: 9px;
  background: #fff;
}
.bd-staff-attendance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 10px;
  padding: 12px;
}
.bd-staff-attendance strong,
.bd-staff-attendance span { display: block; }
.bd-staff-attendance span, .bd-staff-visit p, .bd-staff-team span, .bd-staff-metrics dt { color: #40585c; }
.bd-staff-attendance span { margin-block-start: 3px; font-size: .82rem; }
.bd-staff-panel-title { margin: 3px 0 0; font-size: .875rem; font-weight: 700; }
.bd-staff-visit { padding: 12px; overflow-wrap: anywhere; }
.bd-staff-visit-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 5px 8px;
}
.bd-staff-badge {
  padding: 3px 7px;
  border-radius: 6px;
  background: #eef1f0;
  color: #314d52;
  font-size: .76rem;
  line-height: 1.5;
}
.bd-staff-badge[data-status="in-service"], .bd-staff-badge[data-status="arrived"] {
  background: #f2e8d5;
  color: #533a17;
}
.bd-staff-badge[data-status="completed"], .bd-staff-badge[data-status="paid"] {
  background: #e1ece2;
  color: #254a36;
}
.bd-staff-visit p {
  margin-block: 5px 3px;
  font-size: .82rem;
  line-height: 1.55;
}
.bd-staff-visit time { unicode-bidi: isolate; }
.bd-staff-visit > .bd-staff-action { margin-block-start: 7px; }
.bd-staff-assignment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px 8px;
  margin-block-start: 9px;
}
.bd-staff-empty {
  margin: 0;
  padding: 12px;
  color: #40585c;
  font-size: .875rem;
  line-height: 1.75;
}
.bd-staff-metrics, .bd-staff-team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bd-staff-metrics div, .bd-staff-team li { padding: 12px; }
.bd-staff-metrics dt { font-size: .82rem; line-height: 1.45; }
.bd-staff-metrics dd { margin: 7px 0 0; font-size: 1.03rem; font-weight: 700; }
.bd-staff-team { grid-template-columns: 1fr; }
.bd-staff-team li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; }
.bd-staff-team span { font-size: .82rem; }
.bd-staff-feedback {
  margin: 0 18px 16px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #e2ece4;
  color: #264534;
  font-size: .82rem;
  line-height: 1.55;
}
.bd-staff-feedback-error { background: #f9e7df; color: #702e1e; }
.bd-staff-feedback a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  margin-inline-start: 5px;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}
@media (max-width: 460px) {
  .bd-staff { border-width: 4px; border-radius: 18px; }
  .bd-staff-header, .bd-staff-body { padding-inline: 11px; }
  .bd-staff button { padding-inline: 7px; }
}
@media (max-width: 350px) {
  .bd-staff-assignment { grid-template-columns: 1fr; }
}
