.timeline {
    padding: 12px 16px 0;
}

.timeline-item {
    position: relative;
    padding: 0;
    margin-bottom: 32px;
    border-bottom: none;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.timeline-time-row .timeline-time {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-muted);
    font-family: "SF Mono", monospace;
    flex: 1;
    min-width: 0;
}

.timeline-time-row .timeline-time.is-just-now {
    color: var(--color-important);
}

.timeline-reading {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}

.timeline-watchlist-badge {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 6px;
    margin-left: 8px;
    font-size: 10px;
    font-weight: 400;
    line-height: 16px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 2px;
    vertical-align: middle;
    white-space: nowrap;
}

.timeline-card {
    background: var(--color-bg);
}

.timeline-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.5;
}

.timeline-card-content {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.timeline-card-content-wrap {
    overflow: visible;
}

.timeline-card-content-wrap.is-collapsed .timeline-card-content {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-card-content-wrap.is-expandable.is-collapsed {
    cursor: pointer;
}

.timeline-card-important {
    color: var(--color-important);
}

.timeline-stock-tags {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.timeline-stock-tag {
    min-height: 24px;
    padding: 4px 8px;
    border: none;
    border-radius: 2px;
    background: #f2f2f2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.timeline-stock-market {
    min-width: 22px;
    height: 16px;
    padding: 0 4px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 400;
    line-height: 16px;
    color: #ffffff;
    flex-shrink: 0;
}

.timeline-stock-market-sh,
.timeline-stock-market-sz {
    background: var(--market-cn-bg);
}

.timeline-stock-market-hk {
    background: var(--market-hk-bg);
}

.timeline-stock-market-us {
    background: var(--market-us-bg);
}

.timeline-stock-name {
    font-size: 12px;
    color: #4d4d4d;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.timeline-stock-change {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #999;
    white-space: nowrap;
}

.timeline-stock-change-up {
    color: var(--color-important);
}

.timeline-stock-change-down {
    color: #00B42A;
}

.timeline-stock-change-flat {
    color: var(--stock-flat-color);
}

.timeline-qa-wrap {
    margin-top: 12px;
    padding: 12px;
    background: var(--qa-bg);
    border: 1px solid var(--qa-border);
    border-radius: 14px;
}

.timeline-qa-wrap.hidden {
    display: none;
}

.timeline-qa-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.timeline-qa-title {
    font-size: 13px;
    color: #5f6f88;
    margin-bottom: 0;
    font-weight: 600;
}

.timeline-qa-switch {
    border: 1px solid #d3e2ff;
    background: #f7faff;
    color: #4f6ea6;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    padding: 4px 10px;
    flex-shrink: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.timeline-qa-switch::before {
    content: "↻";
    font-size: 12px;
    line-height: 1;
}

.timeline-qa-switch:hover {
    color: #3552d7;
    border-color: #bdd3ff;
    background: #f1f6ff;
}

.timeline-qa-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.timeline-qa-chip {
    border: none;
    background: var(--qa-chip-bg);
    color: var(--qa-chip-text);
    border-radius: 14px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
    text-align: left;
    transition: background 200ms ease-in-out, color 200ms ease-in-out;
}

.timeline-qa-chip:hover {
    background: #f1f6ff;
    color: #1f2c45;
}

.timeline-qa-answer {
    margin-top: 8px;
    padding: 8px;
    background: var(--qa-answer-bg);
    border-radius: 6px;
    border: 1px solid var(--qa-answer-border);
    font-size: 12px;
    line-height: 1.6;
    color: #454545;
    display: none;
}

.timeline-qa-answer.active {
    display: block;
}

.timeline-qa-answer-meta {
    margin-top: 6px;
    font-size: 11px;
    color: #8c8c8c;
}

.timeline-pager {
    padding: 16px 16px 4px;
    text-align: center;
    font-size: 12px;
    color: #9b9b9b;
}
