        :root {
            --tl-primary: #f7dc24;
            --tl-primary-soft: rgba(247, 220, 36, 0.16);
            --tl-surface: #1f242d;
            --tl-surface-soft: #262d39;
            --tl-border: rgba(255, 255, 255, 0.1);
            --tl-text: #ffffff;
            --tl-muted: #d6d6d6;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: #1a1a1a;
            color: var(--tl-text);
            min-height: 100vh;
        }

        .timeline-page {
            width: min(1100px, calc(100% - 2rem));
            margin: 2rem auto 4rem;
        }

        /* ── HERO ── */
        .hero-card {
            position: relative;
            overflow: hidden;
            border-radius: 18px;
            padding: 2rem;
            background: linear-gradient(135deg, rgba(26, 26, 26, 0.96) 0%, rgba(26, 26, 26, 0.84) 100%);
            border: 1px solid var(--tl-border);
            box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
            margin-bottom: 1.5rem;
        }

        .hero-card::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(45deg, rgba(247, 220, 36, 0.16) 0%, rgba(247, 220, 36, 0.02) 65%);
            pointer-events: none;
        }


        .hero-title {
            margin: 0;
            position: relative;
            z-index: 1;
            font: 800 clamp(2rem, 4.5vw, 3.2rem)/1.05 'Poppins', sans-serif;
            color: var(--tl-text);
            max-width: 18ch;
        }

        .hero-subtitle {
            margin-top: 0.9rem;
            position: relative;
            z-index: 1;
            font: 500 clamp(1rem, 2vw, 1.18rem)/1.5 'Inter', sans-serif;
            color: var(--tl-muted);
            max-width: 70ch;
        }

        .hero-lead {
            margin-top: 0.85rem;
            position: relative;
            z-index: 1;
            font: 500 0.95rem/1.65 'Inter', sans-serif;
            color: #dddddd;
            max-width: 70ch;
        }

        /* ── CONTROLS ── */
        .tl-controls {
            margin-bottom: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .tl-stats-strip {
            display: flex;
            gap: 0.7rem;
            flex-wrap: wrap;
        }

        .tl-stat-pill {
            background: linear-gradient(180deg, var(--tl-surface) 0%, var(--tl-surface-soft) 100%);
            border: 1px solid var(--tl-border);
            border-radius: 12px;
            padding: 0.6rem 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.18rem;
            min-width: 90px;
        }

        .tl-stat-label {
            font: 600 0.68rem/1.2 'Poppins', sans-serif;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #cccccc;
        }

        .tl-stat-value {
            font: 700 1.15rem/1.1 'Poppins', sans-serif;
            color: white;
        }

        .tl-stat-pill--latest {
            max-width: min(100%, 300px);
        }

        .tl-stat-pill--latest .tl-stat-value {
            font-size: 0.82rem;
            font-weight: 600;
            overflow-wrap: anywhere;
        }

        .tl-toolbar {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px 20px;
        }

        .tl-sort {
            display: flex;
            align-items: center;
            gap: 8px;
            max-width: 100%;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .tl-sort select {
            min-height: 36px;
            max-width: 100%;
            padding: 0.45rem 0.6rem;
            border: 1px solid var(--tl-border);
            border-radius: 10px;
            background: var(--tl-surface);
            color: var(--tl-text);
            font: inherit;
        }

        .tl-filter-bar {
            flex: 1 1 38rem;
            min-width: 0;
            display: flex;
            gap: 0.42rem;
            flex-wrap: wrap;
        }

        .tl-filter-btn {
            font: 600 0.74rem/1 'Poppins', sans-serif;
            min-height: 36px;
            color: #e7e7e7;
            background: rgba(247, 220, 36, 0.07);
            border: 1px solid rgba(247, 220, 36, 0.2);
            border-radius: 10px;
            padding: 0.42rem 0.85rem;
            cursor: pointer;
            transition: background 0.18s, border-color 0.18s, color 0.18s;
            white-space: nowrap;
        }

        .tl-filter-btn:hover {
            background: rgba(247, 220, 36, 0.15);
            border-color: rgba(247, 220, 36, 0.42);
        }

        .tl-filter-btn.active {
            background: var(--tl-primary);
            border-color: var(--tl-primary);
            color: #1b1b1b;
        }

        @media (pointer: coarse), (max-width: 720px) {
            .tl-filter-btn,
            .tl-sort select {
                min-height: 44px;
            }
        }

        /* ── TIMELINE CONTAINER ── */
        .tl-container {
            position: relative;
            padding: 0.5rem 0 2rem;
        }

        .tl-container::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom,
                rgba(247, 220, 36, 0.85) 0%,
                rgba(247, 220, 36, 0.45) 50%,
                rgba(247, 220, 36, 0.1) 100%);
            border-radius: 4px;
        }

        /* ── ENTRY ── */
        .tl-entry {
            display: grid;
            grid-template-columns: 1fr 60px 1fr;
            align-items: start;
            margin-bottom: 2.5rem;
        }

        @media (prefers-reduced-motion: no-preference) {
            .tl-entry--appeared .tl-card-side {
                animation: tl-card-enter 440ms ease-out both;
            }

            .tl-entry--appeared .tl-dot {
                animation: tl-dot-enter 520ms ease-out both;
            }
        }

        @keyframes tl-card-enter {
            from { opacity: 0; transform: translateY(14px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes tl-dot-enter {
            from { transform: scale(0.65); box-shadow: 0 0 0 0 #f7dc2470; }
            48% { transform: scale(1.2); box-shadow: 0 0 0 9px #f7dc2438; }
            to { transform: scale(1); }
        }

        .tl-center {
            display: flex;
            justify-content: center;
            padding-top: 0.9rem;
            position: relative;
            z-index: 1;
        }

        .tl-dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: linear-gradient(130deg, #f7dc24, #d6d6d6);
            box-shadow: 0 0 0 4px rgba(247, 220, 36, 0.18), 0 0 14px rgba(247, 220, 36, 0.4);
            flex-shrink: 0;
        }

        /* LEFT: col1=card, col2=dot, col3=date */
        .tl-entry--left .tl-card-side {
            grid-column: 1;
            padding-right: 1.75rem;
        }

        .tl-entry--left .tl-center {
            grid-column: 2;
        }

        .tl-entry--left .tl-date-side {
            grid-column: 3;
            padding-left: 1.5rem;
            padding-top: 0.8rem;
        }

        /* RIGHT: col1=date, col2=dot, col3=card */
        .tl-entry--right .tl-date-side {
            grid-column: 1;
            padding-right: 1.5rem;
            padding-top: 0.8rem;
            text-align: right;
        }

        .tl-entry--right .tl-center {
            grid-column: 2;
        }

        .tl-entry--right .tl-card-side {
            grid-column: 3;
            padding-left: 1.75rem;
        }

        /* ── DATE SIDE ── */
        .tl-date-month {
            display: block;
            font: 700 0.72rem/1.6 'Poppins', sans-serif;
            color: var(--tl-primary);
            text-transform: uppercase;
            letter-spacing: 0.12em;
        }

        .tl-date-year {
            display: block;
            font: 800 1.75rem/1.05 'Poppins', sans-serif;
            color: white;
        }

        /* ── CARD ── */
        .tl-card {
            background: linear-gradient(160deg, rgba(30, 30, 30, 0.95) 0%, rgba(24, 24, 24, 0.95) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            padding: 1rem 1.15rem 1.05rem;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }

        .tl-card-top {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            flex-wrap: wrap;
            margin-bottom: 0.5rem;
        }

        .tl-cat {
            font: 600 0.68rem/1 'Poppins', sans-serif;
            color: #e7e7e7;
            background: rgba(247, 220, 36, 0.1);
            border: 1px solid rgba(247, 220, 36, 0.3);
            border-radius: 999px;
            padding: 0.28rem 0.55rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            white-space: nowrap;
        }

        .tl-card-date-badge {
            display: none;
            font: 600 0.68rem/1 'Poppins', sans-serif;
            color: #1b1b1b;
            background: linear-gradient(130deg, #f7dc24, #d4d4d4);
            border-radius: 999px;
            padding: 0.28rem 0.58rem;
            white-space: nowrap;
        }

        .tl-title {
            margin: 0 0 0.4rem;
            font: 700 0.98rem/1.3 'Poppins', sans-serif;
            color: white;
        }

        .tl-summary {
            margin: 0;
            font: 500 0.87rem/1.58 'Inter', sans-serif;
            color: #dddddd;
        }

        .tl-impact {
            margin: 0.55rem 0 0;
            font: 600 0.8rem/1.45 'Inter', sans-serif;
            color: #e2e2e2;
            border-left: 2px solid rgba(247, 220, 36, 0.42);
            padding-left: 0.55rem;
        }

        /* ── STATUS ── */
        .tl-status {
            font: 500 0.92rem/1.4 'Inter', sans-serif;
            color: #dfdfdf;
            background: rgba(27, 27, 27, 0.72);
            border: 1px dashed rgba(247, 220, 36, 0.34);
            border-radius: 12px;
            padding: 0.85rem 0.9rem;
        }

        .tl-status.is-error {
            color: #ffd3d3;
            border-color: rgba(255, 123, 123, 0.55);
            background: rgba(53, 14, 14, 0.3);
        }

        .tl-status-icon {
            margin-right: 0.4rem;
            color: var(--tl-primary);
        }

        /* ── RESPONSIVE ── */
        @media (max-width: 720px) {
            .tl-container::before {
                left: 19px;
                transform: none;
            }

            .tl-entry {
                grid-template-columns: 40px 1fr;
                grid-template-rows: auto;
            }

            .tl-entry--left .tl-date-side,
            .tl-entry--right .tl-date-side {
                display: none;
            }

            .tl-entry--left .tl-center,
            .tl-entry--right .tl-center {
                grid-column: 1;
                grid-row: 1;
            }

            .tl-entry--left .tl-card-side,
            .tl-entry--right .tl-card-side {
                grid-column: 2;
                grid-row: 1;
                padding-left: 0.85rem;
                padding-right: 0;
            }

            .tl-card-date-badge {
                display: inline-block;
            }

            .tl-entry {
                margin-bottom: 1.75rem;
            }
        }

        @media (max-width: 480px) {
            .timeline-page {
                width: calc(100% - 1.2rem);
                margin-top: 1rem;
            }

            .hero-card {
                padding: 1.25rem;
            }

            .tl-entry {
                grid-template-columns: 24px minmax(0, 1fr);
            }

            .tl-container::before {
                left: 11px;
            }

            .tl-entry--left .tl-card-side,
            .tl-entry--right .tl-card-side {
                min-width: 0;
                padding-left: 0.45rem;
            }

            .tl-card {
                min-width: 0;
                padding: 0.85rem;
            }
        }

        :where(.timeline-page) :is(p, div, span, label, button) {
            font-family: 'Inter', sans-serif;
        }
