        /* ===== Timeline ===== */
        .timeline { position: relative; }
        .timeline-track {
            position: relative;
            display: flex;
            gap: 0;
            overflow-x: auto;
            padding: 2.4rem 0.5rem 1rem;
            scroll-behavior: smooth;
            scrollbar-width: thin;
            scrollbar-color: rgba(134,187,236,0.25) transparent;
        }
        .timeline-track::-webkit-scrollbar { height: 6px; }
        .timeline-track::-webkit-scrollbar-thumb { background: rgba(134,187,236,0.25); border-radius: 3px; }
        .timeline-track::-webkit-scrollbar-track { background: transparent; }
        .timeline-line {
            position: absolute;
            top: 2.9rem;
            left: 1rem;
            right: 1rem;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(134,187,236,0.35), transparent);
            pointer-events: none;
        }
        .timeline-item {
            flex: 0 0 88px;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: none;
            border: none;
            color: inherit;
            font: inherit;
            cursor: pointer;
            padding: 0;
            position: relative;
            transition: transform var(--transition);
        }
        .timeline-item:hover { transform: translateY(-2px); }
        .timeline-dot {
            width: 14px; height: 14px; border-radius: 50%;
            background: #0d1725;
            border: 2px solid rgba(134,187,236,0.35);
            transition: all 0.2s ease;
            position: relative;
            z-index: 1;
        }
        .timeline-item:hover .timeline-dot { border-color: rgba(134,187,236,0.7); }
        .timeline-item.active .timeline-dot {
            background: var(--accent);
            border-color: var(--accent);
            box-shadow: 0 0 12px rgba(134,187,236,0.6);
            transform: scale(1.25);
        }
        .timeline-year {
            margin-top: 0.7rem;
            font-family: var(--heading-font);
            font-size: 0.78rem;
            color: var(--muted);
            font-weight: 600;
            letter-spacing: 0.05em;
        }
        .timeline-item.active .timeline-year { color: var(--accent); }
        .timeline-card {
            margin-top: 1.2rem;
            background: var(--surface-strong);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 1.2rem 1.4rem;
            box-shadow: var(--shadow);
            min-height: 120px;
        }
        .timeline-card-year {
            color: var(--accent);
            font-family: var(--heading-font);
            font-size: 0.78rem;
            font-weight: 600;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            display: block;
            margin-bottom: 0.5rem;
        }
        .timeline-card h4 {
            margin: 0 0 0.55rem;
            font-family: var(--heading-font);
            font-size: 1.05rem;
            font-weight: 600;
        }
        .timeline-card p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.65; }

        @media (max-width: 680px) {
            .timeline-track {
                flex-direction: column;
                overflow-x: visible;
                overflow-y: auto;
                max-height: 340px;
                padding: 0.5rem 0.25rem;
                gap: 0.2rem;
            }
            .timeline-line { display: none; }
            .timeline-item {
                flex: 0 0 auto;
                flex-direction: row;
                align-items: center;
                width: 100%;
                padding: 0.45rem 0.6rem;
                gap: 0.85rem;
                border-radius: 10px;
            }
            .timeline-item:hover { background: var(--surface-soft); transform: none; }
            .timeline-item.active { background: rgba(134,187,236,0.08); }
            .timeline-year { margin-top: 0; font-size: 0.85rem; }
        }

        /* ===== Neighbor list under embeddings ===== */
        .embed-neighbors {
            margin-top: 1rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 0.5rem;
        }
        .embed-neighbor {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.8rem;
            padding: 0.55rem 0.85rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 8px;
            font-size: 0.9rem;
        }
        .embed-neighbor-token {
            font-family: ui-monospace, 'JetBrains Mono', monospace;
            color: var(--text);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .embed-neighbor-sim {
            font-family: ui-monospace, 'JetBrains Mono', monospace;
            font-size: 0.84rem;
            flex: 0 0 auto;
        }
        .embed-neighbor-sim.high { color: #6fe8a0; }
        .embed-neighbor-sim.mid  { color: #f5b86c; }
        .embed-neighbor-sim.low  { color: #ef7e7e; }
        .embed-neighbors-empty {
            color: var(--muted);
            font-size: 0.9rem;
            text-align: center;
            padding: 0.4rem 0;
            grid-column: 1 / -1;
        }

        /* ===== Attention: chips + bars ===== */
        .attn-sentence {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            padding: 1rem;
            background: rgba(255,255,255,0.025);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            margin-bottom: 1rem;
        }
        .attn-chip {
            padding: 0.55rem 0.9rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 9px;
            color: var(--text);
            font-size: 0.95rem;
            cursor: pointer;
            transition: background-color 0.15s, border-color 0.15s, color 0.15s;
            font-family: inherit;
        }
        .attn-chip:hover {
            background: rgba(134,187,236,0.1);
            border-color: rgba(134,187,236,0.35);
        }
        .attn-chip.active {
            background: rgba(134,187,236,0.22);
            border-color: rgba(134,187,236,0.65);
            color: var(--accent);
            font-weight: 600;
        }

        .attn-bars { display: grid; gap: 0.35rem; }
        .attn-bar {
            display: grid;
            grid-template-columns: minmax(84px, 1fr) 3fr 56px;
            align-items: center;
            gap: 0.7rem;
            padding: 0.35rem 0.7rem;
            background: rgba(255,255,255,0.025);
            border-radius: 8px;
        }
        .attn-bar-token {
            font-family: ui-monospace, 'JetBrains Mono', monospace;
            font-size: 0.9rem;
            color: var(--text);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .attn-bar-track {
            height: 8px;
            background: rgba(255,255,255,0.05);
            border-radius: 4px;
            overflow: hidden;
        }
        .attn-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, rgba(134,187,236,0.55), rgba(134,187,236,0.95));
            border-radius: 4px;
            transition: width 0.35s ease;
        }
        .attn-bar-weight {
            text-align: right;
            font-family: ui-monospace, 'JetBrains Mono', monospace;
            font-size: 0.85rem;
            color: var(--accent);
        }
        .attn-empty {
            color: var(--muted);
            font-size: 0.92rem;
            text-align: center;
            padding: 1.2rem 0.5rem;
            background: rgba(255,255,255,0.02);
            border: 1px dashed rgba(255,255,255,0.08);
            border-radius: 10px;
        }

        /* ===== Сетка для трёх карточек подходов ===== */
        .approaches-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
        @media (max-width: 780px) { .approaches-3 { grid-template-columns: 1fr; } }

        /* ===== Небольшая утилита ===== */
        .article-section .lead { color: var(--muted); font-size: 1rem; max-width: 72ch; margin: 0 0 1rem; }
        .article-section .lead:last-child { margin-bottom: 0; }
        .article-section h3 { margin: 1.6rem 0 0.6rem; font-family: var(--heading-font); font-size: 1.08rem; font-weight: 600; }
        .article-section ul.bullets { margin: 0.4rem 0 0.8rem; padding-left: 1.1rem; color: var(--muted); font-size: 0.96rem; }
        .article-section ul.bullets li { margin-bottom: 0.35rem; }
        .article-section code {
            font-family: ui-monospace, 'JetBrains Mono', monospace;
            font-size: 0.88em;
            background: rgba(255,255,255,0.05);
            padding: 0.1em 0.4em;
            border-radius: 5px;
            color: var(--accent);
        }


                .attn-bars-head {
            color: var(--muted);
            font-size: 0.85rem;
            padding: 0.1rem 0.7rem 0.45rem;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            margin-bottom: 0.15rem;
        }
