.tm {
  --tm-card: rgb(var(--color-voon-card));
  --tm-line: rgb(255 255 255 / 0.06);
  --tm-text: rgb(255 255 255 / 0.92);
  --tm-muted: rgb(255 255 255 / 0.55);
  --tm-accent: rgb(var(--color-indigo-500));
  color: var(--tm-text);
}
.tm *, .tm *::before, .tm *::after { box-sizing: border-box; }

.tm-hero {
  border-radius: 1.25rem; border: 1px solid var(--tm-line); padding: 2rem;
  background:
    radial-gradient(120% 140% at 0% 0%, rgb(var(--color-indigo-500) / 0.22), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgb(var(--color-indigo-700) / 0.25), transparent 60%),
    var(--tm-card);
}
.tm-eyebrow { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--color-indigo-400)); }
.tm-hero h1 { margin: 0.35rem 0 0; font-size: 2rem; line-height: 1.15; font-weight: 700; color: #fff; }
.tm-hero p { margin: 0.75rem 0 0; max-width: 42rem; color: var(--tm-muted); line-height: 1.6; }
.tm-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.tm-button {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.1rem; border-radius: 0.8rem;
  background: var(--tm-accent); color: #fff; font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.tm-button:hover { background: rgb(var(--color-indigo-600)); color: #fff; }
.tm-button--ghost { background: rgb(255 255 255 / 0.06); border: 1px solid var(--tm-line); }
.tm-button--ghost:hover { background: #5865f2; }

.tm-empty { margin-top: 1.5rem; padding: 2rem; text-align: center; border-radius: 1rem; border: 1px solid var(--tm-line); background: var(--tm-card); color: var(--tm-muted); }

.tm-group { --tm-role: rgb(var(--color-indigo-400)); margin-top: 2rem; }
.tm-group-title { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; font-size: 1.15rem; font-weight: 700; color: #fff; }
.tm-group-title small { font-size: 0.8rem; font-weight: 600; color: var(--tm-muted); }
.tm-dot { width: 0.65rem; height: 0.65rem; border-radius: 999px; background: var(--tm-role); }

.tm-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.tm-card {
  display: flex; align-items: center; gap: 0.9rem; padding: 1rem;
  border-radius: 1rem; border: 1px solid var(--tm-line); background: var(--tm-card);
  border-left: 3px solid var(--tm-role);
}
.tm-avatar { flex: 0 0 auto; width: 3.5rem; height: 3.5rem; border-radius: 999px; object-fit: cover; background: rgb(0 0 0 / 0.25); }
.tm-avatar--blank { display: inline-flex; align-items: center; justify-content: center; color: var(--tm-muted); }
.tm-card-body { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.tm-name { font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-role { font-size: 0.75rem; font-weight: 600; color: var(--tm-role); }
.tm-mc { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem; font-size: 0.8rem; color: var(--tm-muted); text-decoration: none; }
.tm-mc:hover { color: #fff; }
.tm-mc img { border-radius: 0.2rem; image-rendering: pixelated; }

@media (max-width: 639px) {
  .tm-hero { padding: 1.25rem; }
  .tm-hero h1 { font-size: 1.6rem; }
  .tm-grid { grid-template-columns: 1fr; }
}
