.bp-employee-picker-dialog {
  border: 0;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 26px 80px rgba(28, 49, 37, .28);
  max-width: min(560px, 92vw);
}

.bp-employee-picker-dialog::backdrop {
  background: rgba(19, 38, 28, .42);
  backdrop-filter: blur(2px);
}

.bp-employee-picker-card {
  width: min(560px, 92vw);
  padding: 24px;
  background: #fff;
}

.bp-employee-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.bp-employee-picker-head h2 {
  margin: 5px 0 0;
  font-size: 24px;
  color: #183526;
}

.bp-employee-picker-head > button {
  border: 0;
  background: transparent;
  color: #71847a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.bp-employee-picker-card > p {
  margin: 12px 0;
  color: #65786d;
  font-size: 13px;
  line-height: 1.45;
}

.bp-placement-team,
.bp-placement-warnings {
  margin-top: 14px;
  border: 1px solid #dfe7e2;
  border-radius: 14px;
  background: #f9fbfa;
  overflow: hidden;
}

.bp-placement-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
}

.bp-placement-section-head > span {
  color: #65786d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bp-placement-section-head > strong {
  min-width: 0;
  overflow: hidden;
  color: #244a36;
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-placement-team details {
  border-top: 1px solid #e5ebe7;
}

.bp-placement-team summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 12px;
  color: #2e8058;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.bp-placement-team summary::-webkit-details-marker {
  display: none;
}

.bp-placement-team summary::after {
  content: "▾";
  margin-left: 7px;
  transition: transform .14s ease;
}

.bp-placement-team details[open] summary::after {
  transform: rotate(180deg);
}

.bp-employee-picker-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  padding: 0 10px 10px;
}

.bp-employee-picker-option {
  position: relative;
  display: block;
}

.bp-employee-picker-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bp-employee-picker-option span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border: 1px solid #d9e2dc;
  border-radius: 9px;
  padding: 7px 8px;
  background: #fff;
  color: var(--employee-color, #60766a);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.bp-employee-picker-option span i {
  width: 3px;
  height: 14px;
  flex: 0 0 3px;
  border-radius: 999px;
  background: var(--employee-color, #60766a);
}

.bp-employee-picker-option span strong {
  min-width: 0;
  overflow: hidden;
  color: var(--employee-color, #60766a);
  font: inherit;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-employee-picker-option input:checked + span {
  background: #f0f7f2;
  border-color: var(--employee-color, #2e8058);
  box-shadow: inset 0 0 0 1px var(--employee-color, #2e8058);
}

.bp-employee-picker-option input:focus-visible + span {
  outline: 3px solid rgba(95, 146, 116, .2);
  outline-offset: 2px;
}

.bp-placement-warnings {
  border-color: #ead6b8;
  background: #fffbf4;
}

.bp-placement-warnings .bp-placement-section-head {
  border-bottom: 1px solid #f0dfc7;
}

.bp-placement-warnings .bp-placement-section-head > strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #a66a20;
  color: #fff;
  font-size: 10px;
}

.bp-placement-warnings ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px 12px 12px;
  list-style: none;
}

.bp-placement-warnings li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: start;
}

.bp-placement-warnings li > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #fff0d9;
  color: #a66a20;
  font-size: 12px;
  font-weight: 950;
}

.bp-placement-warnings li strong {
  display: block;
  color: #79501d;
  font-size: 12px;
}

.bp-placement-warnings li p {
  margin: 2px 0 0;
  color: #806843;
  font-size: 11px;
  line-height: 1.4;
}

.bp-employee-picker-status {
  min-height: 20px !important;
  margin: 6px 0 0 !important;
  color: #aa4637 !important;
  font-weight: 800;
}

.bp-employee-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.bp-employee-picker-actions button {
  border: 1px solid #d9e2dc;
  background: #fff;
  color: #183526;
  border-radius: 11px;
  padding: 11px 15px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bp-employee-picker-actions button.primary {
  background: #2e8058;
  color: #fff;
  border-color: #2e8058;
}

@media (max-width: 560px) {
  .bp-employee-picker-card {
    padding: 20px;
  }

  .bp-placement-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .bp-placement-section-head > strong {
    max-width: 100%;
    text-align: left;
  }

  .bp-employee-picker-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bp-employee-picker-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bp-employee-picker-actions button {
    width: 100%;
  }
}
