.active-talent-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-height: min(86vh, 860px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(8, 45, 92, .24);
}

.active-talent-dialog::backdrop { background: rgba(8, 26, 53, .68); }
.active-talent-dialog > section { padding: 24px; }
.active-talent-dialog .modal-title { margin-bottom: 16px; }
.active-talent-dialog .modal-title h2 { margin: 0; font-size: 24px; }
.active-talent-dialog .modal-title p { margin-top: 4px; }
.active-talent-dialog .modal-close { cursor: pointer; color: var(--navy); }

.active-talent-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.active-talent-summary span {
  padding: 12px 14px;
  border: 1px solid #dce6f1;
  border-radius: 11px;
  background: #f7fafd;
  color: #4b6078;
  font-size: 13px;
}

.active-talent-summary strong {
  display: block;
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 21px;
}

.active-talent-summary .needs-review { background: #fff7ed; border-color: #f2d3b3; }
.active-talent-summary .needs-review strong { color: #a24a1b; }

.active-talent-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.active-talent-filters label {
  display: grid;
  gap: 5px;
  color: #465b73;
  font-size: 12px;
  font-weight: 700;
}

.active-talent-filters select {
  width: 100%;
  min-height: 40px;
  padding: 8px 34px 8px 10px;
  border: 1px solid #cad7e5;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.active-talent-caption {
  margin: 14px 0 10px;
  color: #5e7187;
  font-size: 12px;
}

.active-talent-table-wrap {
  max-height: min(50vh, 470px);
  overflow: auto;
  border: 1px solid #dce5ef;
  border-radius: 12px;
}

.active-talent-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.active-talent-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  border-bottom: 1px solid #dce5ef;
  background: #f3f7fb;
  color: #50647b;
  text-align: left;
  white-space: nowrap;
}
.active-talent-table td { padding: 12px; border-bottom: 1px solid #e6edf4; vertical-align: top; }
.active-talent-table tr:last-child td { border-bottom: 0; }
.active-talent-table tr.needs-attention { background: #fffaf4; }
.active-talent-table strong,
.active-talent-table small { display: block; }
.active-talent-table small { margin-top: 4px; color: #65788d; line-height: 1.35; }

.active-talent-profile {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.active-talent-profile:hover { text-decoration-color: currentColor; }

.active-talent-status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #4a5d73;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.active-talent-status.started { background: #e5f5ef; color: #11644e; }
.active-talent-status.completed { background: #eaf2fb; color: #245d91; }
.active-talent-status.needs_review { background: #fff0e4; color: #a04416; }

.active-talent-loading,
.active-talent-error,
.active-talent-empty { padding: 46px 20px; text-align: center; color: #5f7288; }
.active-talent-error strong { display: block; margin-bottom: 6px; color: #9b341c; font-size: 18px; }
.active-talent-error p { margin: 0 0 16px; }

@media (max-width: 820px) {
  .active-talent-dialog > section { padding: 18px; }
  .active-talent-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .active-talent-filters { grid-template-columns: 1fr 1fr; }
  .active-talent-table { min-width: 830px; }
}

@media (max-width: 520px) {
  .active-talent-dialog { width: calc(100vw - 18px); max-height: 92vh; }
  .active-talent-dialog > section { padding: 15px; }
  .active-talent-dialog .modal-title h2 { font-size: 20px; }
  .active-talent-summary,
  .active-talent-filters { grid-template-columns: 1fr; }
}
