/* ZIP v16 person rows, scoped to the live team and workplace screens. */
.booking-cabinet :is(.ab-team-screen,.ab-workplaces-screen) > .ab-title-row {
  align-items:center;
  flex-wrap:nowrap;
  gap:12px;
  margin-bottom:16px;
}
.booking-cabinet :is(.ab-team-screen,.ab-workplaces-screen) > .ab-title-row > .ab-action {
  flex-shrink:0;
  min-height:44px;
  padding:9px 14px;
  font-size:13px;
  line-height:1.3;
}
.booking-cabinet .ab-team-screen .ab-team-member > .ab-action,
.booking-cabinet .ab-workplaces-screen .ab-place-row > .ab-actions > .ab-action {
  min-height:40px;
  padding:7px 12px;
  font-size:12px;
  font-weight:500;
  line-height:1.3;
}
.booking-cabinet .ab-team-screen .ab-team-scope,
.booking-cabinet .ab-workplaces-screen .ab-place-scope {
  margin:16px 0 0;
  color:#6b7280;
  font-size:13px;
  line-height:1.5;
}
.booking-cabinet .ab-workplaces-screen .ab-place-scope p { margin:0; }
.booking-cabinet .ab-workplaces-screen .ab-place-scope p + p { margin-top:8px; }
.booking-cabinet .ab-team-screen .ab-team-empty,
.booking-cabinet .ab-workplaces-screen .ab-place-empty {
  max-width:500px;
  margin:0 auto;
  padding:40px 20px;
  text-align:center;
}
.booking-cabinet .ab-team-screen .ab-team-empty p,
.booking-cabinet .ab-workplaces-screen .ab-place-empty p {
  margin:0 0 18px;
  font-size:14px;
  line-height:1.5;
}
.booking-cabinet .ab-team-screen .ab-team-empty h3 { margin:0 0 10px; font-size:20px; font-weight:600; line-height:1.3; }
@media(max-width:768px) {
  .booking-cabinet :is(.ab-team-screen,.ab-workplaces-screen) > .ab-title-row > .ab-action { font-size:12px; }
}

/* Keep optional access controls quieter than the specialist cooperation flow.
   Fields, avatars and small actions reuse the active v16 person-row values. */
.booking-cabinet .ab-team-access { max-width:820px; margin-top:20px; }
.booking-cabinet :is(.ab-team-access,.ab-team-history-disclosure) > summary {
  width:fit-content;
  max-width:100%;
  min-height:44px;
  padding:10px 0;
  cursor:pointer;
  color:#646b74;
  font-size:14px;
  font-weight:500;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.booking-cabinet :is(.ab-team-access,.ab-team-history-disclosure) > summary:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:6px;
}
.booking-cabinet .ab-team-access .ab-team-invites { max-width:none; margin-top:16px; }
.booking-cabinet .ab-team-access .ab-team-invites h3 { font-size:16px; font-weight:500; margin:16px 0 12px; }
.booking-cabinet .ab-team-invites .ab-specialist-access-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  max-width:620px;
  padding:0 0 16px;
}
.booking-cabinet .ab-specialist-access-form .ab-field > label { font-size:14px; font-weight:400; color:#646b74; }
.booking-cabinet .ab-specialist-access-form .ab-invite-help { grid-column:1/-1; margin:0; font-size:13px; line-height:1.5; }
.booking-cabinet .ab-specialist-access-form > .ab-action { grid-column:1/-1; justify-self:start; }
.booking-cabinet .ab-team-access .ab-team-row { border-bottom:0; }
.booking-cabinet .ab-team-access .ab-action { min-height:40px; padding:7px 12px; font-size:12px; font-weight:500; line-height:1.3; }
.booking-cabinet .ab-team-access .ab-team-history-disclosure { margin-top:16px; }
.booking-cabinet .ab-team-history-disclosure > summary { font-size:13px; }
.booking-cabinet .ab-team-history > .ab-muted { margin:0 0 12px; font-size:13px; line-height:1.5; }
.booking-cabinet .ab-team-history time { color:#646b74; font-size:12px; line-height:1.5; }
@media(max-width:768px) {
  .booking-cabinet .ab-team-invites .ab-specialist-access-form { grid-template-columns:minmax(0,1fr); }
}

/* One email field; only exact published-profile results are shown. */
.booking-cabinet .ab-team-invites .ab-specialist-access-form { display:block; width:100%; max-width:520px; }
.booking-cabinet .ab-team-match { display:grid; gap:12px; margin-top:12px; }
.booking-cabinet .ab-team-match:empty { display:none; }
.booking-cabinet .ab-team-match > button { justify-self:start; }
.booking-cabinet .ab-team-match-card { display:flex; align-items:center; gap:12px; padding:12px; border-radius:14px; background:#f6f7f8; min-width:0; }
.booking-cabinet .ab-team-match-card img { width:44px; height:44px; flex:none; border-radius:50%; object-fit:cover; }
.booking-cabinet .ab-team-match-card .ab-team-copy { min-width:0; flex:1; overflow-wrap:anywhere; }
.booking-cabinet .ab-team-match-card small { color:#747c87; }
.booking-cabinet .ab-team-match-card button { flex:none; }

.booking-cabinet .ab-team-screen > .ab-team-invites { margin:0 0 20px; }
.booking-cabinet .ab-team-screen > .ab-team-invites > h3 { display:none; }

/* One quiet roster card per person, with clear primary and secondary actions. */
.booking-cabinet .ab-team-screen { max-width:900px; margin-inline:0 auto; }
.booking-cabinet .ab-team-screen .ab-team-row { min-width:0; padding:16px; margin-block:10px; border:0; border-radius:16px; background:#f5f6f8; gap:14px; }
.booking-cabinet .ab-team-screen .ab-team-row:nth-child(3n+2) { background:#f3f6f7; }
.booking-cabinet .ab-team-screen .ab-team-copy { min-width:0; overflow-wrap:anywhere; }
.booking-cabinet .ab-team-screen .ab-team-copy strong { font-size:14px; font-weight:600; }
.booking-cabinet .ab-team-screen .ab-team-copy span { font-size:12px; line-height:1.5; }
.booking-cabinet .ab-team-screen .ab-action { border:0; border-radius:11px; min-height:40px; padding:9px 13px; background:#fff; box-shadow:0 2px 8px #28313f09; font-size:13px; }
.booking-cabinet .ab-team-screen .ab-action--primary { background:#24272c; color:#fff; }
.booking-cabinet .ab-team-screen .ab-team-avatar { background:#e4e8ed; color:#596575; }
.booking-cabinet .ab-team-screen .ab-team-access { margin-top:24px; }
.booking-cabinet .ab-team-screen .ab-team-access > summary { border:0; color:#737c89; }
@media(max-width:480px) { .booking-cabinet .ab-team-screen .ab-team-row { padding:13px; flex-wrap:wrap; } .booking-cabinet .ab-team-screen .ab-team-row > .ab-team-copy { flex:1 1 160px; } }

.booking-cabinet .ab-team-screen .ab-collaboration-row { padding:16px; margin:10px 0; border:0; border-radius:16px; background:#f3f5f8; }
.booking-cabinet .ab-team-screen .ab-collab-status { color:#7c8795; font-size:12px; }
