.dash .team-stale {
    margin: 0 32px 10px;
    font-size: 13px;
    color: var(--tone-warn-fg);
}

.dash .team-empty {
    margin: 24px 32px;
}

.dash .team-table {
    overflow-x: auto;
}

.dash .team-screen .screen-figures,
.dash .team-screen .team-charts,
.dash .team-screen .team-col-num {
    transition: opacity var(--dur-fast) var(--ease-out);
}

.dash .team-screen.is-updating .screen-figures,
.dash .team-screen.is-updating .team-charts,
.dash .team-screen.is-updating .team-col-num {
    opacity: 0.5;
    transition-delay: 150ms;
}

.dash .team-table table {
    width: 100%;
    min-width: 1000px;
    table-layout: fixed;
    border-collapse: collapse;
}

.dash .team-table th {
    height: 32px;
    padding: 0 6px;
    border-top: 1px solid rgba(255, 255, 255, .075);
    border-bottom: 1px solid rgba(255, 255, 255, .075);
    background: #0c0c0c;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: left;
    white-space: nowrap;
}

.dash .team-table td {
    height: 46px;
    padding: 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: 13px;
    color: var(--text-soft);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dash .team-table tr > :first-child {
    padding-left: 32px;
}

.dash .team-table tr > :last-child {
    padding-right: 32px;
}

.dash .team-table tbody tr:hover td {
    background: rgba(255, 255, 255, .02);
}

.dash .team-col-state {
    width: 144px;
}

.dash .team-col-console {
    width: 162px;
}

.dash .team-col-active {
    width: 88px;
}

.dash .team-col-chats {
    width: 120px;
}

.dash .team-col-calls {
    width: 108px;
}

.dash .team-col-rating {
    width: 96px;
}

.dash .team-out-of {
    margin-left: 1px;
    color: var(--text-dim);
}

.dash .team-table .team-col-num {
    text-align: right;
}

.dash .team-table .team-strong {
    color: var(--text);
}

.dash .team-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dash .team-avatar {
    width: 28px;
    height: 28px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #262626;
    color: #d4d4d4;
    font-size: 10.5px;
    font-weight: 600;
}

.dash .team-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.dash .team-role {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.dash .team-role--admin {
    background: var(--tone-violet-bg);
    color: var(--tone-violet-fg);
}

.dash .team-role--agent {
    background: var(--tone-signal-bg);
    color: var(--tone-signal-fg);
}

.dash .team-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.dash .team-state .agent-status-dot {
    box-shadow: none;
}

.dash .team-state--quiet {
    color: var(--text-muted);
}

.dash .team-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
    margin: 28px 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--dash-separator);
}

.dash .team-chart {
    min-width: 0;
}

.dash .team-chart--wide {
    grid-column: 1 / -1;
}

.dash .team-chart--ghost {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash .team-chart-ghost {
    height: 160px;
    border-radius: 10px;
}

.dash .team-chart-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.dash .team-chart-title {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.dash .team-chart-note,
.dash .team-chart-head .chart-legend {
    margin-left: auto;
}

.dash .team-chart-note {
    font-size: 11.5px;
    color: var(--text-muted);
}

.dash .team-chart-sub {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
}

.dash .team-chart > .chart-frame,
.dash .team-chart > .spread {
    margin-top: 14px;
}

.dash .team-chart-empty {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--dash-muted);
}

.dash .team-chart-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--dash-muted);
}

.dash .team-heat-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-size: 11.5px;
    color: var(--text-muted);
}

.dash .team-heat-scale {
    color: var(--text-soft);
    font-variant-numeric: tabular-nums;
}

.dash .team-heat-ramp {
    width: 72px;
    height: 8px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .05), #0d366b 16%, #256abf, #6da7ec, #9ec5f4);
}

.dash .team-heat {
    display: grid;
    grid-template-columns: 34px repeat(var(--hours), minmax(0, 1fr));
    gap: 3px;
    margin-top: 10px;
}

.dash .team-heat-hour {
    display: flex;
    justify-content: center;
    height: 16px;
    font-size: 10.5px;
    color: var(--text-dim);
    white-space: nowrap;
}

.dash .team-heat-day {
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    color: var(--text-muted);
}

.dash .team-heat-cell {
    height: 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .05);
}

.dash .team-heat-cell--1 { background: #0d366b; }
.dash .team-heat-cell--2 { background: #184f95; }
.dash .team-heat-cell--3 { background: #256abf; }
.dash .team-heat-cell--4 { background: #3987e5; }
.dash .team-heat-cell--5 { background: #6da7ec; }
.dash .team-heat-cell--6 { background: #9ec5f4; }

.dash .team-categories {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.dash .team-category {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.dash .team-category-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-soft);
}

.dash .team-category-track {
    height: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .05);
}

.dash .team-category-fill {
    display: block;
    width: var(--bar);
    height: 10px;
    border-radius: 4px;
    background: #3987e5;
}

.dash .team-category-value {
    min-width: 64px;
    font-size: 12.5px;
    color: var(--text-soft);
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dash .team-ghost-rows {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, .075);
}

.dash .team-ghost-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 120px 80px;
    align-items: center;
    gap: 12px;
    height: 46px;
    padding: 0 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

@media (max-width: 1023px) {
    .dash .team-stale,
    .dash .team-empty {
        margin-inline: var(--dash-gutter);
    }

    .dash .team-table tr > :first-child {
        padding-left: var(--dash-gutter);
    }

    .dash .team-table tr > :last-child {
        padding-right: var(--dash-gutter);
    }

    .dash .team-charts {
        grid-template-columns: minmax(0, 1fr);
        margin-inline: var(--dash-gutter);
    }

    .dash .team-ghost-row {
        padding-inline: var(--dash-gutter);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .dash .team-table,
    .dash .team-charts:not(.ghost-root) {
        animation: content-in var(--dur-mid) var(--ease-out) backwards;
    }

    .dash .team-table {
        animation-delay: 60ms;
    }

    .dash .team-charts:not(.ghost-root) {
        animation-delay: 120ms;
    }
}

.dash .team-scope-tag {
    flex-shrink: 0;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--dash-avatar-bg);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--accent-text);
}
