.available-talent-page { max-width: 1420px; }

.available-talent-heading { align-items: center; }
.available-talent-heading h1 { margin-bottom: 8px; }
.available-talent-heading p:last-child {
  max-width: 740px;
  margin: 0;
  color: #61748a;
  line-height: 1.55;
}

.bench-feedback {
  margin: -10px 0 18px;
  padding: 11px 14px;
  border: 1px solid #b8dfd2;
  border-radius: 10px;
  background: #eef8f4;
  color: #12634e;
  font-size: 13px;
}
.bench-feedback.is-error { border-color: #ecc5bf; background: #fff3f0; color: #9e321f; }

.bench-capacity {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid #d8e4ef;
  border-left: 4px solid #2477b7;
  border-radius: 14px;
  background: linear-gradient(110deg, #f9fcff, #fffdfb 68%);
  box-shadow: 0 7px 20px rgba(8,45,92,.045);
}
.bench-capacity p { margin: 0 0 5px; color: #5b7189; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .045em; }
.bench-capacity strong { color: var(--navy); font-size: 25px; }
.bench-capacity strong span { color: #65788e; font-size: 14px; font-weight: 650; }
.bench-capacity small { margin-left: 10px; color: #167562; font-size: 12px; }
.bench-manage-limits { margin-left: 10px; padding: 3px 5px; font-size: 11px; }
.bench-capacity-track { overflow: hidden; height: 10px; border-radius: 99px; background: #e5edf5; }
.bench-capacity-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2477b7, #164273); transition: width .25s ease; }

.bench-workspace { padding: 22px; }
.bench-filter-heading,
.bench-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.bench-filter-heading { margin-bottom: 15px; }
.bench-filter-heading h2 { margin: 0 0 3px; color: var(--navy); }
.bench-filter-heading p,
.bench-results-heading p,
.bench-results-heading small { margin: 0; color: #65788e; font-size: 12px; }
.bench-results-heading { margin: 20px 0 12px; padding-top: 17px; border-top: 1px solid #e4eaf1; }
.bench-results-heading strong { color: var(--navy); font-size: 16px; }

.bench-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) repeat(3, minmax(145px, 1fr)) minmax(115px, .65fr) minmax(115px, .65fr);
  gap: 10px;
}
.bench-filters > label { min-width: 0; }
.bench-filters > label > span { display: block; margin: 0 0 6px; color: #53677f; font-size: 11px; font-weight: 750; }
.bench-filters input,
.bench-filters select {
  width: 100%;
  min-height: 41px;
  padding: 9px 10px;
  border: 1px solid #ccd9e7;
  border-radius: 9px;
  outline: 0;
  background: #f8fafc;
  color: #233a54;
  font: inherit;
  font-size: 12px;
}
.bench-filters input:focus,
.bench-filters select:focus { border-color: #2477b7; box-shadow: 0 0 0 3px rgba(36,119,183,.12); }
.bench-rate-input { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; min-height: 41px; border: 1px solid #ccd9e7; border-radius: 9px; background: #f8fafc; }
.bench-rate-input > span,
.bench-rate-input > small { padding: 0 7px; color: #64778d; font-size: 11px; }
.bench-rate-input input { min-width: 0; padding-inline: 0; border: 0; background: transparent; }
.bench-rate-input:focus-within { border-color: #2477b7; box-shadow: 0 0 0 3px rgba(36,119,183,.12); }

.bench-list { display: grid; gap: 10px; }
.bench-talent-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.05fr) minmax(180px, 1fr) minmax(210px, 1.25fr) minmax(235px, 1.25fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(8,45,92,.035);
}
.bench-talent-card:hover { border-color: #b9ccdf; box-shadow: 0 7px 19px rgba(8,45,92,.07); }
.bench-person { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; min-width: 0; }
.bench-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #dceaf6; color: var(--navy); font-size: 11px; font-weight: 850; }
.bench-profile-link { display: block; max-width: 100%; overflow: hidden; padding: 0; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: 14px; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.bench-profile-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bench-profile-link:focus-visible { outline: 2px solid #2477b7; outline-offset: 3px; border-radius: 3px; }
.bench-person small { display: block; overflow: hidden; margin-top: 3px; color: #697b8e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bench-card-section { min-width: 0; }
.bench-card-section > small,
.bench-card-facts small { display: block; margin-bottom: 5px; color: #718197; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.bench-chips { display: flex; flex-wrap: wrap; gap: 4px; max-height: 47px; overflow: hidden; }
.bench-chip { display: inline-flex; min-width: 0; max-width: 150px; overflow: hidden; padding: 4px 7px; border-radius: 999px; color: #235b88; background: #edf5fb; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bench-chip-type { color: #7c541b; background: #fbf2df; }
.bench-chip-more { color: #fff; background: var(--navy); }
.bench-empty-value { color: #8491a2; font-size: 11px; }
.bench-card-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; min-width: 0; }
.bench-card-facts > span { min-width: 0; }
.bench-card-facts strong { display: block; overflow: hidden; color: #29435f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bench-card-actions { display: flex; flex-direction: column; align-items: stretch; gap: 5px; min-width: 96px; }
.bench-card-actions .button { min-height: 37px; padding: 8px 10px; font-size: 11px; white-space: nowrap; }
.bench-card-actions .button:disabled,
.bench-assignment-dialog button:disabled { cursor: not-allowed; opacity: .55; }
.bench-card-actions .text-button { padding: 3px 7px; font-size: 11px; }
.bench-owned-label { color: #12634e; font-size: 11px; font-weight: 750; text-align: center; }

.bench-empty,
.bench-loading,
.bench-error { padding: 52px 20px; text-align: center; color: #66798f; }
.bench-empty strong,
.bench-loading strong,
.bench-error strong { display: block; color: var(--navy); font-size: 17px; }
.bench-empty p,
.bench-loading p,
.bench-error p { max-width: 560px; margin: 7px auto 15px; line-height: 1.5; }
.bench-loading > span { display: inline-block; width: 28px; height: 28px; margin-bottom: 12px; border: 3px solid #dce7f1; border-top-color: #2477b7; border-radius: 50%; animation: bench-spin .8s linear infinite; }
@keyframes bench-spin { to { transform: rotate(360deg); } }

.bench-assignment-dialog { width: min(510px, calc(100vw - 30px)); border: 0; border-radius: 16px; padding: 0; color: var(--ink); }
.bench-assignment-dialog::backdrop { background: rgba(8,26,53,.68); }
.bench-assignment-dialog form { padding: 23px; }
.bench-assignment-dialog header,
.bench-assignment-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bench-assignment-dialog header { margin-bottom: 15px; }
.bench-assignment-dialog header h2 { margin: 0; color: var(--navy); }
.bench-assignment-dialog header button { border: 0; background: transparent; color: #50657d; font-size: 25px; cursor: pointer; }
.bench-assignment-dialog > form > p { color: #61748a; font-size: 13px; line-height: 1.5; }
.bench-assignment-dialog label { display: grid; gap: 7px; margin: 17px 0; color: #29435f; font-size: 12px; font-weight: 750; }
.bench-assignment-dialog select,
.bench-assignment-dialog input { width: 100%; min-height: 43px; padding: 9px 10px; border: 1px solid #ccd9e7; border-radius: 9px; background: #fff; color: #243c57; font: inherit; }
.bench-assignment-dialog footer { justify-content: flex-end; margin-top: 19px; padding-top: 16px; border-top: 1px solid #e5eaf0; }
.bench-dialog-message { min-height: 18px; margin: 7px 0; color: #536b82; font-size: 12px; }
.bench-dialog-message.is-error { color: #a13c2a; }

@media (max-width: 1400px) {
  .bench-filters { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .bench-talent-card { grid-template-columns: minmax(165px,1fr) minmax(190px,1fr) minmax(220px,1.2fr) auto; }
  .bench-talent-card > .bench-card-section:nth-child(2) { display: none; }
}

@media (max-width: 900px) {
  .bench-capacity { grid-template-columns: 1fr; gap: 12px; }
  .bench-talent-card { grid-template-columns: minmax(180px,1fr) minmax(210px,1fr) auto; }
  .bench-card-section { display: none; }
}

@media (max-width: 680px) {
  .available-talent-heading { display: flex; align-items: flex-start; }
  .bench-workspace { padding: 15px; }
  .bench-filters { grid-template-columns: 1fr 1fr; }
  .bench-search { grid-column: 1 / -1; }
  .bench-results-heading small { display: none; }
  .bench-talent-card { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
  .bench-card-facts { grid-column: 1 / -1; grid-row: 2; padding-top: 10px; border-top: 1px solid #e6edf4; }
  .bench-card-actions { grid-column: 2; grid-row: 1; }
}

@media (max-width: 430px) {
  .bench-filters { grid-template-columns: 1fr; }
  .bench-search { grid-column: auto; }
  .bench-talent-card { display: block; }
  .bench-card-facts { margin: 13px 0; }
  .bench-card-actions { flex-direction: row; align-items: center; }
  .bench-card-actions .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .bench-capacity-track > span { transition: none; }
  .bench-loading > span { animation-duration: 1.6s; }
}
