.tm-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tm-jump-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text-on-accent) 14%, transparent);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-on-accent);
    text-decoration: none;
    transition: background var(--transition-fast), translate var(--transition-fast);
}

.tm-jump-link:hover {
    translate: 0 -2px;
    background: color-mix(in srgb, var(--text-on-accent) 24%, transparent);
}

.tm-jump-link b {
    font-weight: 800;
}

.tm-group {
    scroll-margin-top: 24px;
}

.tm-group + .tm-group {
    padding-top: 72px;
}

.tm-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin-left: 6px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent-bg);
    font-size: 16px;
    color: var(--accent);
    vertical-align: middle;
}

.tm-grid {
    display: grid;
    gap: 16px;
}

.tm-grid--xl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.tm-grid--lg {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tm-grid--sm {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tm-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
}

.tm-card:hover {
    translate: 0 -4px;
    border-color: var(--accent-border);
    box-shadow: var(--shadow-card);
}

.tm-card--xl {
    gap: 24px;
    padding: 30px 32px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--accent-bg) 0%, var(--bg-card) 70%);
}

.tm-card--lg {
    flex-direction: column;
    gap: 14px;
    padding: 26px 18px 22px;
    border-radius: 18px;
    text-align: center;
}

.tm-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tm-card--lg .tm-card-body {
    align-items: center;
    width: 100%;
}

.tm-nick {
    overflow: hidden;
    max-width: 100%;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tm-card--lg .tm-nick {
    font-size: 16px;
}

.tm-card--xl .tm-nick {
    font-size: 22px;
    font-weight: 800;
}

.tm-position {
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-muted);
}

.tm-card--xl .tm-position {
    font-size: 14px;
    color: var(--text-secondary);
}

.tm-ava {
    flex-shrink: 0;
}

.tm-ava--sm {
    width: 44px;
    height: 44px;
    font-size: 16px;
}

.tm-ava--lg {
    width: 76px;
    height: 76px;
    font-size: 28px;
    box-shadow: 0 0 0 4px var(--accent-bg);
}

.tm-ava--xl {
    width: 104px;
    height: 104px;
    font-size: 38px;
    box-shadow:
        0 0 0 5px var(--bg-card),
        0 0 0 8px var(--accent);
}
