/* Keep directory columns balanced even when accounts contain long profile URLs. */
#creators .creator-directory-table {
  table-layout: fixed;
  min-width: 700px;
}

#creators .creator-directory-table th:nth-child(1) { width: 42%; }
#creators .creator-directory-table th:nth-child(2) { width: 20%; }
#creators .creator-directory-table th:nth-child(3) { width: 18%; }
#creators .creator-directory-table th:nth-child(4) { width: 14%; }
#creators .creator-directory-table th:nth-child(5) { width: 6%; }

#creators .creator-directory-table th,
#creators .creator-directory-table td {
  padding: 16px 18px;
  vertical-align: middle;
}

#creators .creator-directory-table th { font-size: 11px; }
#creators .creator-directory-table th:last-child,
#creators .creator-directory-table td:last-child {
  padding-inline: 8px;
  text-align: center;
}

#creators .creator-cell { min-width: 0; }
#creators .creator-cell > span:last-child { min-width: 0; flex: 1; }
#creators .creator-cell b,
#creators .creator-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
}

#creators .creator-cell b { font-size: 13px; }
#creators .creator-cell small { font-size: 11px; }
#creators .creator-directory-table td:nth-child(2) { overflow-wrap: anywhere; line-height: 1.6; }
#creators .creator-directory-table td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#creators .creator-directory-table tbody tr:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -3px;
}

#creators .toolbar { align-items: center; gap: 12px; }
#creators .search { min-width: 0; }
#creators .search input { min-width: 0; }
#creators #owner-filter { flex: 0 0 170px; }
#creator-error:empty { display: none; }
#creator-error:not(:empty) { padding-bottom: 16px; }

@media (max-width: 700px) {
  #creators .toolbar { padding-inline: 16px; }
  #creators #owner-filter { flex: 1 1 100%; }
  #creators .creator-directory-table { min-width: 0; }
  #creators .creator-directory-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #creators .creator-directory-table tbody,
  #creators .creator-directory-table tr { display: block; }
  #creators .creator-directory-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 16px;
    padding: 16px;
    border-top: 1px solid var(--line-soft);
  }
  #creators .creator-directory-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  #creators .creator-directory-table td:first-child { grid-column: 1 / -1; }
  #creators .creator-directory-table td:last-child {
    padding: 0;
    text-align: right;
    align-self: end;
  }
  #creators .creator-directory-table td[data-label]:not(:first-child):not(:last-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
  }
}
