#team-management-content { display: grid; gap: 22px; }
#team-management-content .stats-tiles { margin-bottom: 0; }
.tm-view { display: grid; gap: 22px; min-width: 0; }
#team-management-content .stats-tile small { color: var(--dg-text-dim); font-size: .72rem; }
#team-management-content .stats-tile strong.tm-tile-text { overflow: hidden; font-size: 1.05rem; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }

.tm-section-label { display: flex; align-items: center; gap: 8px; margin: 0; color: #8d98a8; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tm-section-label::before { content: ""; width: 3px; height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--dg-highlight) 72%, transparent); }

.tm-panel { display: grid; gap: 14px; }
.tm-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tm-panel-head p { margin: 4px 0 0; color: var(--dg-text-muted); font-size: .84rem; }
.tm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-actions .dg-table-action { min-height: 30px; padding: 0 10px; font-size: .78rem; }
.tm-reason { max-width: 440px; overflow-wrap: anywhere; white-space: normal; }
.tm-sub { display: block; color: var(--dg-text-dim); font-size: .74rem; }
.tm-muted { color: var(--dg-text-dim); }
.tm-protected { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid rgba(246, 189, 56, .3); border-radius: 10px; background: rgba(246, 189, 56, .06); color: var(--dg-warn); font-size: .84rem; }
.tm-ids { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--dg-text-dim); font-size: .78rem; }
.tm-table tr.is-inactive td { opacity: .55; }
.tm-detail-pre { margin: 0; max-width: 520px; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--dg-text-muted); font: inherit; font-size: .8rem; }

.tm-quick { display: flex; flex-wrap: wrap; gap: 6px; }

.bs-form { display: grid; gap: 22px; }
.bs-section { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .06); }
.bs-section:first-of-type { padding-top: 0; border-top: 0; }
.bs-section h3 { margin: 0; color: #fff; font-size: .98rem; font-weight: 700; }
.bs-form .mc-field input[type="number"] { width: 100%; box-sizing: border-box; border: 1px solid var(--dg-line); border-radius: 8px; padding: 10px 12px; background: rgba(4, 10, 16, .72); color: var(--dg-text); font: inherit; }
.bs-form .mc-field input[type="number"]:focus { border-color: color-mix(in srgb, var(--dg-highlight) 55%, transparent); outline: 0; }
.bs-section > .mc-hint { margin: 0; }
.bs-forum { display: grid; gap: 14px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.bs-forum-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.bs-forum-head strong { color: #e6eef6; font-size: .92rem; }
.bs-form .mc-field input[type="color"] { width: 64px; height: 40px; box-sizing: border-box; padding: 3px; border: 1px solid var(--dg-line); border-radius: 8px; background: rgba(4, 10, 16, .72); cursor: pointer; }
.bs-meta { margin-right: auto; align-self: center; color: var(--dg-text-dim); font-size: .78rem; }

@media (max-width: 720px) {
  .tm-panel-head { align-items: stretch; flex-direction: column; }
  .tm-panel-head .dg-table-action { width: 100%; }
}
