#team-activity { display: grid; gap: 22px; }
#team-activity .stats-tiles { margin-bottom: 0; }
#team-activity .stats-tile small { color: var(--dg-text-dim); font-size: .72rem; }
#team-activity .ta-tile-name { overflow: hidden; font-size: 1.15rem; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }

.ta-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: -8px; }
.ta-toolbar .dg-search-host { width: min(340px, 100%); }
.ta-hint { color: var(--dg-text-dim); font-size: .78rem; }

.ta-table tbody tr.ta-row { cursor: pointer; transition: background .15s ease; }
.ta-table tbody tr.ta-row:hover, .ta-table tbody tr.ta-row:focus-visible { background: color-mix(in srgb, var(--dg-highlight) 5%, transparent); outline: none; }
.ta-table th.is-sorted { color: var(--dg-highlight); }
.ta-table th.is-sorted.is-asc::after { content: '↑'; color: var(--dg-highlight); }
.ta-table th.is-sorted.is-desc::after { content: '↓'; color: var(--dg-highlight); }
.ta-person { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.ta-person > div { display: grid; gap: 3px; min-width: 0; }
.ta-person strong { overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.ta-role { display: inline-flex; align-items: center; gap: 6px; color: var(--dg-text-muted); font-size: .76rem; }
.ta-role .role-color-dot { width: 8px; height: 8px; }

.ta-avatar { flex: 0 0 38px; width: 38px; height: 38px; object-fit: cover; }
.team-member-avatar-fallback.ta-avatar { color: var(--role-color, var(--dg-highlight)); }
.ta-avatar--large { flex-basis: 64px; width: 64px; height: 64px; border-radius: 16px; font-size: 26px; }

.ta-detail-head { display: flex; align-items: center; gap: 12px; }
.ta-profile { display: flex; align-items: center; gap: 18px; }
.ta-profile__text { display: grid; gap: 4px; min-width: 0; }
.ta-profile__text h3 { margin: 0; color: #fff; font-size: 1.5rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }

.ta-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ta-block { display: grid; align-content: start; gap: 12px; min-width: 0; }
.ta-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ta-count { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--dg-text-muted); font-size: .7rem; }
.ta-mod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ta-detail-text { max-width: 360px; overflow-wrap: anywhere; white-space: normal; }

.ta-bars { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--dg-line); border-radius: var(--dg-r-lg); background: var(--dg-card); }
.ta-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 72px; align-items: center; gap: 12px; font-size: .84rem; }
.ta-bar__label { color: var(--dg-text-muted); }
.ta-bar__track { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.ta-bar__fill { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: var(--dg-highlight); transition: width .5s var(--dg-ease); }
.ta-bar__value { color: #fff; font-weight: 600; text-align: right; }

.ta-days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 6px; height: 150px; padding: 18px 18px 12px; border: 1px solid var(--dg-line); border-radius: var(--dg-r-lg); background: var(--dg-card); }
.ta-day { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 6px; height: 100%; }
.ta-day__fill { align-self: end; width: 100%; max-width: 22px; min-height: 4px; border-radius: 5px; background: color-mix(in srgb, var(--dg-highlight) 70%, transparent); transition: height .5s var(--dg-ease); }
.ta-day__label { color: var(--dg-text-dim); font-size: .68rem; }

@media (max-width: 1200px) {
  .ta-two, .ta-mod-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .ta-bar { grid-template-columns: 90px minmax(0, 1fr) 60px; }
  .ta-profile { align-items: flex-start; }
}
