#chef-directory-view {
  --roster-ink: #39251e;
  --roster-muted: #706058;
  --roster-rule: #dfd4c7;
  --roster-paper: #fffdfa;
  container: chef-roster / inline-size;
}
#chef-directory-view > .admin-chefs-directory__shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.chef-directory-toolbar, .chef-directory-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .65rem;
}
.chef-directory-toolbar { justify-content: space-between; margin-bottom: .55rem; }
#chefs-directory-result-count {
  margin: 0;
  color: var(--roster-ink);
  font-size: .85rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
#chef-directory-view .admin-chefs-directory__actions { width: auto; gap: .3rem; }
#chef-directory-view .admin-chefs-directory__action,
#chef-directory-view .chef-directory-clear {
  margin: 0;
  min-height: 2rem;
  padding: .3rem .65rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: .76rem;
  line-height: 1.25;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
}
#chef-directory-view .chef-directory-clear {
  padding-inline: .2rem;
  border: 0;
  background: transparent;
  color: #713c30;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.chef-directory-filters {
  display: grid;
  grid-template-columns: max-content minmax(8rem, 10rem) minmax(10rem, 1fr);
  align-items: stretch;
  gap: .4rem;
  margin-bottom: .65rem;
}
#chef-directory-view .admin-chefs-directory__seg {
  gap: 2px;
  padding: 2px;
  background: #efe8df;
  border: 1px solid var(--roster-rule);
  border-radius: 7px;
}
#chef-directory-view .admin-chefs-directory__seg-btn {
  min-height: 1.8rem;
  margin: 0;
  padding: .25rem .48rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #624f45;
  box-shadow: none;
  font: 600 .76rem/1.2 "DM Sans", sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
#chef-directory-view .admin-chefs-directory__seg-btn.is-active { background: #472020; color: #fffaf5; }
#chef-directory-view .admin-chefs-directory__seg-btn:not(.is-active):hover { background: #e6dacd; }
#chef-directory-view .admin-chefs-directory__seg-btn em { margin-left: .12rem; opacity: .85; font-weight: 600; }
#chef-directory-view .admin-chefs-directory__search, #chefs-directory-market-filters {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 2.2rem;
  margin: 0;
  padding-inline: .55rem;
  border: 1px solid var(--roster-rule);
  border-radius: 6px;
  background: var(--roster-paper);
  color: var(--roster-ink);
  font: 500 .8rem/1.3 "DM Sans", sans-serif;
}
#chefs-directory-market-filters { cursor: pointer; }
#chef-directory-view #chefs-directory-filter {
  margin: 0;
  padding: .3rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
}
#chefs-directory-filter::placeholder { color: var(--roster-muted); }
#chef-directory-view :is(button, select):focus-visible,
#chef-directory-view .admin-chefs-directory__search:focus-within {
  outline: 2px solid #884b39;
  outline-offset: 2px;
}
.chef-directory-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--roster-rule);
  border-radius: 9px;
  background: var(--roster-paper);
  color: var(--roster-ink);
  text-align: left;
}
.chef-directory-table :is(th, td) {
  padding: .44rem .7rem;
  border: 0;
  vertical-align: middle;
  text-align: start;
}
.chef-directory-table thead th {
  padding-block: .48rem;
  border-bottom: 1px solid var(--roster-rule);
  background: #f0e9df;
  color: #614e43;
  font: 650 .74rem/1.25 "DM Sans", sans-serif;
}
.chef-directory-table thead th:first-child { width: 43%; border-top-left-radius: 8px; }
.chef-directory-table thead th:nth-child(3) { width: 6.5rem; }
.chef-directory-table thead th:last-child { width: 4.5rem; text-align: end; border-top-right-radius: 8px; }
.chef-directory-row + .chef-directory-row > * { border-top: 1px solid #eae1d8; }
.chef-directory-row:hover { background: #faf5ee; }
.chef-directory-table .chef-directory-identity {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-align: start;
  text-transform: none;
  letter-spacing: normal;
}
.chef-directory-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 2.65rem;
  height: 2.65rem;
  overflow: hidden;
  border: 1px solid #e0d4c8;
  border-radius: 8px;
  background: #f1e5d8;
  color: #694934;
  font: 650 .85rem/1 "DM Sans", sans-serif;
}
.chef-directory-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chef-directory-person { display: grid; gap: .12rem; min-width: 0; }
.chef-directory-name { color: var(--roster-ink); font: 700 .91rem/1.24 "DM Sans", sans-serif; overflow-wrap: anywhere; }
.chef-directory-email, .chef-directory-rating { color: var(--roster-muted); font: 400 .75rem/1.25 "DM Sans", sans-serif; overflow-wrap: anywhere; }
button.chef-directory-identity:is(:hover, :focus-visible) .chef-directory-name { text-decoration: underline; text-underline-offset: .15em; }
.chef-directory-markets .admin-chef-card__markets { margin: 0; gap: .2rem .25rem; }
.chef-directory-markets .admin-chef-card__market {
  padding: .18rem .4rem;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 550;
  letter-spacing: normal;
  line-height: 1.25;
}
.chef-directory-badge {
  display: inline-block;
  padding: .2rem .43rem;
  border-radius: 5px;
  background: #eee8e1;
  color: #5d5046;
  font: 650 .73rem/1.2 "DM Sans", sans-serif;
  white-space: nowrap;
}
.chef-directory-badge[data-review-status="approved"] { color: #31573c; background: #e5eee5; }
.chef-directory-badge[data-review-status="invited"] { color: #3d5774; background: #e7edf5; }
.chef-directory-badge:is([data-review-status="pending"], [data-review-status="needs_info"]) { color: #805219; background: #faecd0; }
.chef-directory-table .chef-directory-actions { text-align: end; }
.chef-directory-actions .admin-chef-card__menu { display: inline-block; text-align: start; }
.chef-directory-actions .admin-chef-card__menu-btn { width: 2rem; height: 2rem; }

@container chef-roster (max-width: 44rem) {
  .chef-directory-filters { grid-template-columns: minmax(8rem, 2fr) minmax(0, 3fr); }
  .chef-directory-filters .admin-chefs-directory__seg { grid-column: 1 / -1; justify-self: start; }
}
@container chef-roster (max-width: 33rem) {
  .chef-directory-table, .chef-directory-table tbody { display: block; }
  .chef-directory-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .chef-directory-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "chef actions" "markets status";
    align-items: center;
    gap: .25rem .4rem;
    padding: .45rem .55rem;
  }
  .chef-directory-row + .chef-directory-row { border-top: 1px solid #eae1d8; }
  .chef-directory-table .chef-directory-row > :is(th, td) { border: 0; padding: 0; }
  .chef-directory-row > th { grid-area: chef; }
  .chef-directory-row .chef-directory-markets { grid-area: markets; }
  .chef-directory-row .chef-directory-status { grid-area: status; text-align: end; }
  .chef-directory-row .chef-directory-actions { grid-area: actions; }
}
@media (pointer: coarse) {
  #chef-directory-view :is(.admin-chefs-directory__action, .admin-chefs-directory__seg-btn, .admin-chefs-directory__search, select),
  .chef-directory-actions .admin-chef-card__menu-btn { min-height: 44px; }
  .chef-directory-actions .admin-chef-card__menu-btn { min-width: 44px; }
}
