.team-access {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
  font-size: 12px;
  font-weight: 600;
}

.team-access.off {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.team-access.global {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
}

.team-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.team-edit-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.team-inline-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.team-inline-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.team-assignments-modal {
  width: 1080px;
}

.team-assignments-header {
  margin-bottom: 16px;
}

.team-assignment-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.team-assignment-count {
  font-size: 14px;
  font-weight: 600;
}

.team-assignment-copy,
.team-assignment-muted {
  color: var(--muted);
  font-size: 13px;
}

.team-assignment-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.team-assignment-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-assignment-input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 14px;
  outline: none;
  text-transform: none;
  letter-spacing: normal;
}

.team-assignment-input:focus {
  border-color: var(--accent);
}

.team-assignment-filter-actions {
  margin-top: 16px;
}

.team-assignment-table-wrap {
  margin-top: 16px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
}

.team-assignment-table {
  width: 100%;
  border-collapse: collapse;
}

.team-assignment-table th,
.team-assignment-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}

.team-assignment-table th {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-assignment-table tr:last-child td {
  border-bottom: 0;
}

.team-assignment-work strong {
  display: block;
  margin-bottom: 4px;
}

.team-assignment-meta {
  color: var(--muted);
  font-size: 13px;
}

.team-assignment-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.team-assignment-pill.is-assigned {
  background: rgba(124,92,255,0.12);
  color: #c4b5fd;
}

.team-assignment-pill.is-opened {
  background: rgba(74,222,128,0.12);
  color: #86efac;
}

.team-assignment-pill.is-revoked {
  background: rgba(248,113,113,0.12);
  color: #fca5a5;
}

.team-assignment-empty {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

@media (max-width: 600px) {
  .team-assignments-modal {
    width: 100%;
  }

  .team-assignment-summary {
    align-items: flex-start;
  }

  .team-assignment-filters {
    grid-template-columns: 1fr;
  }

  .team-assignment-table-wrap {
    overflow-x: auto;
  }
}
