/* Hallmark · component: OP Crime gang directory · genre: modern-minimal · theme: existing topdevphone system
 * states: default · hover · focus · active · disabled · loading · error · empty
 * pre-emit critique: compact phone rows keep identity primary and communication actions explicit. */

.gang-subtitle {
  margin-top: 1px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}

.gang-scroll { padding: 10px 12px 24px; }

.gang-summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 2px 10px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}

.gang-list {
  overflow: hidden;
  border-radius: var(--radius-card-lg);
  background: var(--bg-secondary);
}

.gang-member {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 72px;
  padding: 8px 9px;
  border-bottom: 1px solid var(--separator);
}

.gang-member:last-child { border-bottom: 0; }
.gang-member.is-self { background: color-mix(in srgb, var(--accent-blue) 8%, transparent); }

.gang-avatar {
  width: 36px;
  height: 36px;
  background: var(--accent-green);
  color: var(--theme-preview-light);
  font-size: 12px;
}

.gang-member-main { min-width: 0; }
.gang-member-name { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.gang-member-meta { overflow: hidden; margin-top: 2px; color: var(--text-secondary); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }

.gang-actions { display: flex; gap: 3px; }
.gang-actions button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-blue) 14%, transparent);
  color: var(--accent-blue);
  cursor: pointer;
}
.gang-actions .ic { width: 15px; height: 15px; }
.gang-actions button:hover { background: color-mix(in srgb, var(--accent-blue) 22%, transparent); }
.gang-actions button:active { transform: scale(.94); }
.gang-actions button:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }

.gang-state {
  display: grid;
  min-height: 380px;
  padding: 28px;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--text-secondary);
  text-align: center;
}
.gang-state > .ic { width: 34px; height: 34px; opacity: .65; }
.gang-state p { max-width: 230px; font-size: 13px; line-height: 1.45; }
.gang-sheet-copy { margin: 0 0 12px; color: var(--text-secondary); text-align: center; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .gang-actions button:active { transform: none; }
}
