.ld-tm {
    --tm-card: 300px;
    --tm-gap: 16px;
}

.ld-tm-view {
    display: flex;
    flex-direction: column;
    gap: var(--tm-gap);
    padding: 4px 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.ld-tm-row {
    display: flex;
    gap: var(--tm-gap);
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: ld-marquee var(--tm-speed, 70s) linear infinite;
    animation-play-state: paused;
}

.ld-tm-row.is-reverse {
    animation-direction: reverse;
    animation-delay: calc(var(--tm-speed, 70s) / -9);
}

.ld-tm.is-running .ld-tm-row {
    animation-play-state: running;
}

.ld-tm.is-running .ld-tm-view:hover .ld-tm-row,
.ld-tm.is-running .ld-tm-view:focus-within .ld-tm-row {
    animation-play-state: paused;
}

.ld-tm-card {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 14px;
    width: var(--tm-card);
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.ld-tm-who {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ld-tm-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 15px;
    font-weight: 650;
}

.ld-tm-id {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ld-tm-name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    color: var(--text);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ld-tm-handle {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-3);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ld-tm-text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-2);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ld-tm-more {
    align-self: flex-start;
    margin-top: -4px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13.5px;
    font-weight: 650;
    color: var(--text);
    cursor: pointer;
}

.ld-tm-more[hidden] {
    display: none;
}

.ld-tm-modal .modal {
    width: min(520px, calc(100vw - 32px));
}

.ld-tm-modal .modal-header {
    align-items: center;
}

.ld-tm-full {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-2);
    white-space: pre-line;
}

@media (max-width: 560px) {
    .ld-tm {
        --tm-card: 260px;
        --tm-gap: 12px;
    }

    .ld-tm-card {
        padding: 16px;
    }
}
