/* ==========================================================================
   COMPONENT: Timeline (时间轴)
   ========================================================================== */

/**
 * 结构层级:
 * .row-timeline (容器)
 *   .timeline-scroll-container (滚动层)
 *     .timeline-track (轨道)
 *       .timeline-line (轴线)
 *       .t-node (节点: Zig-Zag 布局)
 *         .t-marker (锚点)
 *         .t-meta-group (日期/图标)
 *         .t-content (文本内容)
 * 
 * 特色:
 * 1. 桌面端: 水平滚动 + Zig-Zag 左右分布。
 * 2. 移动端: 垂直滚动 + 3列网格对齐 (Global Axial Alignment)。
 */

/* --- 1. 基础容器 (Shared) --- */
.row-timeline {
    height: 360px;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
    border-radius: 18px;
    margin-bottom: 36px;
}

.timeline-scroll-container {
    width: 100%;
    height: 360px;
    overflow-x: auto;
    display: flex;
    align-items: center;
    padding: 0 var(--t-pad, 50vw);
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    background: rgba(14, 18, 26, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 18px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 25px rgba(var(--lw-color-cyan-rgb), 0.06);
    box-sizing: border-box;
}

body.light-mode .timeline-scroll-container {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.timeline-scroll-container::-webkit-scrollbar {
    display: none;
}

.timeline-track {
    display: flex;
    align-items: center;
    /* FIX: Width logic for horizontal scroll */
    min-width: 100%;
    width: max-content;
    height: 100%;
    /* ENSURE 360px HEIGHT FOR ABSOLUTE AXIS ANCHORING */
    position: relative;
    z-index: 1;
    /* REMOVED unstable padding, using actual spacer nodes instead */
    padding: 0 !important;
}

.t-side-spacer {
    display: block !important;
    min-width: 160px !important;
    width: 160px !important;
    flex: 0 0 160px !important;
    /* SECURE 160px Safety Zone - NO CSS TRICKS, REAL NODE */
    height: 100%;
    pointer-events: none;
    visibility: visible;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 10;
    pointer-events: none;
    opacity: 1;
}

/* Ruler Ticks */
.timeline-line::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 9px;
    pointer-events: none;
    background: repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.35) 0,
            rgba(255, 255, 255, 0.35) 1px,
            transparent 1px,
            transparent 20px);
}

/* Light Mode Overrides for Axis Line */
body.light-mode .timeline-line {
    background: rgba(0, 0, 0, 0.22) !important;
    box-shadow: none !important;
}

body.light-mode .timeline-line::after {
    background: repeating-linear-gradient(90deg,
            rgba(0, 0, 0, 0.2) 0,
            rgba(0, 0, 0, 0.2) 1px,
            transparent 1px,
            transparent 20px) !important;
}

/* --- 2. 标记样式 (Markers: Beginning & Future) --- */
.t-end-marker,
.t-future-marker {
    position: relative;
    z-index: 2;
    display: block;
    min-width: 140px;
    height: 100%;
}

.te-icon,
.tf-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px var(--lw-accent));
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 30px;
    /* Spacing above center line */
}

.te-label,
.tf-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    /* Spacing below center line */
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    white-space: normal;
    width: 140px;
    /* Constrain width for 2-line wrap */
    text-align: center;
    line-height: 1.4;
}

/* Light Mode Overrides for Markers */
body.light-mode .te-label,
body.light-mode .tf-label {
    color: rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

/* Step 66: 白天模式起止点图标拔除青光，悬浮泛暖金琥珀微光 */
body.light-mode .te-icon,
body.light-mode .tf-icon {
    filter: none !important;
}

body.light-mode .t-end-marker:hover .te-icon,
body.light-mode .t-future-marker:hover .tf-icon {
    filter: drop-shadow(0 2px 6px rgba(214, 126, 46, 0.4)) !important;
}

/* --- 3. 节点样式 (Nodes) --- */
.t-node {
    position: relative;
    min-width: var(--t-node-w, 240px);
    scroll-snap-align: center;
    height: 100%;
    /* RESET: Disable flex centering for visual items, use absolute anchors instead */
    display: block;
    cursor: pointer;
    pointer-events: none;
    transition: z-index 0.3s;
}

.t-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--lw-bg);
    border: 2px solid var(--lw-text-muted);
    border-radius: 50%;
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    pointer-events: auto;
}

.t-node:hover .t-marker,
.t-node.active .t-marker {
    background: var(--lw-accent);
    border-color: var(--lw-accent);
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow: 0 0 10px var(--lw-accent);
}

.t-meta-group {
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.001);
    z-index: 20;
    gap: 8px;
    white-space: nowrap;
    text-align: center;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.t-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px var(--lw-accent));
}

.t-date-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: var(--lw-sys-text-main);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2px 9px;
    border-radius: 12px;
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
    transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.t-node:hover .t-date-label,
.t-node.active .t-date-label {
    background: rgba(var(--lw-color-cyan-rgb), 0.15);
    border-color: var(--lw-accent);
    color: var(--lw-accent);
}

.t-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 190px;
    max-width: 190px;
    background-color: transparent;
    z-index: 20;
    pointer-events: auto;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.t-content h4 {
    margin: 0 0 4px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--lw-sys-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.t-content p {
    margin: 0;
    color: var(--lw-sys-text-muted);
    font-size: 0.72rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.65;
}

/* --- 4. Zig-Zag 布局 (Desktop) --- */
.t-node.layout-up .t-meta-group {
    top: auto;
    bottom: 50%;
    padding-bottom: 20px;
}

.t-node.layout-up .t-content {
    top: 50%;
    bottom: auto;
    padding-top: 28px;
}

.t-node.layout-down .t-meta-group {
    top: 50%;
    bottom: auto;
    padding-top: 24px;
    flex-direction: row-reverse;
}

.t-node.layout-down .t-content {
    top: auto;
    bottom: 50%;
    padding-bottom: 22px;
}

/* Hover & Active Interaction Upgrade */
.t-node:hover .t-content,
.t-node.active .t-content {
    transform: translateX(-50%) scale(1.05);
    opacity: 1;
    text-shadow: 0 0 15px var(--lw-accent);
}

.t-node:hover .t-meta-group,
.t-node.active .t-meta-group {
    transform: scale(1.1);
    text-shadow: 0 0 8px var(--lw-accent);
}

/* Step 64: 白天模式事件轴节点选中与悬浮暖橙品牌高定交互 (消灭黑夜青色残留，呼应产品卡片 #d67e2e) */
body.light-mode .t-node:hover .t-marker,
body.light-mode .t-node.active .t-marker {
    background: #d67e2e !important;
    border-color: #d67e2e !important;
    transform: translate(-50%, -50%) scale(1.45) !important;
    box-shadow: 0 0 14px rgba(214, 126, 46, 0.55), 0 0 0 4px rgba(214, 126, 46, 0.15) !important;
}

body.light-mode .t-node:hover .t-date-label,
body.light-mode .t-node.active .t-date-label {
    background: rgba(214, 126, 46, 0.12) !important;
    border-color: #d67e2e !important;
    color: #b85d10 !important;
    box-shadow: 0 4px 12px rgba(214, 126, 46, 0.2) !important;
}

body.light-mode .t-node:hover .t-content h4,
body.light-mode .t-node.active .t-content h4 {
    color: #d67e2e !important;
    text-shadow: none !important;
}

body.light-mode .t-node:hover .t-meta-group,
body.light-mode .t-node.active .t-meta-group {
    text-shadow: none !important;
}

/* Step 66: 白天模式左右滑动翻页按钮高定轻奢瓷白微浮雕底纹 */
body.light-mode .t-nav {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-top: 1px solid #fff !important;
    color: #1a1a1a !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 8px 24px rgba(0, 50, 100, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04), inset 0 1px 0 #fff !important;
}

body.light-mode .t-nav:hover {
    background: #d67e2e !important;
    border-color: #d67e2e !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(214, 126, 46, 0.5) !important;
}

/* Step 65: 白天模式事件轴图标源头色彩隔离 (拔除常规态 5px 青色发光毛刺，悬浮/激活呈现温润暖橙光晕) */
body.light-mode .t-icon {
    filter: none !important;
}

body.light-mode .t-node:hover .t-icon,
body.light-mode .t-node.active .t-icon {
    filter: drop-shadow(0 2px 6px rgba(214, 126, 46, 0.4)) !important;
}

/* --- Navigation Buttons (磨砂亚克力玻璃微粒与避让) --- */
.t-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(18, 22, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.t-nav:hover {
    background: var(--lw-accent);
    color: #000;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(var(--lw-color-cyan-rgb), 0.6);
}

.t-prev {
    left: 15px;
}

.t-next {
    right: 55px; /* 避开右侧全站悬浮控制坞（太阳/小喇叭） */
}

/* --- 4. Chronometer (iPhone Notch Dynamic Island) --- */
.timeline-chronometer {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
}

.chrono-surface {
    background: rgba(12, 16, 24, 0.88);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 9999px;
    padding: 3px 10px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    width: 116px; /* 紧凑流体药丸，两侧露头暗示 */
    max-width: 90vw;
    margin: 0 auto;
    cursor: pointer;
    transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.32s cubic-bezier(0.16, 1, 0.3, 1), padding 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 18px rgba(var(--lw-color-cyan-rgb, 0, 234, 255), 0.15);
}

body.light-mode .chrono-surface {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    border-top-color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 10px 24px rgba(0, 50, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

#lw-chrono-surface {
    box-sizing: border-box !important;
    border-color: var(--lw-sys-border);
}

/* 展开态：三宽展现与激活阴影 */
.timeline-chronometer.is-expanded .chrono-surface,
.timeline-chronometer.active-island .chrono-surface,
.chrono-surface.is-expanded {
    width: 240px !important;
    height: auto !important;
    min-height: 64px !important;
    border-radius: 18px !important;
    padding: 6px 14px !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 234, 255, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

.timeline-chronometer.active-island #lw-chrono-surface {
    border-radius: 18px;
    padding: 6px 14px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 234, 255, 0.22);
}

/* Light Mode Overrides for Expanded Chronometer (Kill dark shadow leakage) */
body.light-mode .timeline-chronometer.is-expanded .chrono-surface,
body.light-mode .timeline-chronometer.active-island .chrono-surface,
body.light-mode .chrono-surface.is-expanded,
body.light-mode .timeline-chronometer.active-island #lw-chrono-surface {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-top: 1px solid rgba(255, 255, 255, 1) !important;
    box-shadow: 0 10px 30px rgba(0, 50, 100, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

body.light-mode .timeline-chronometer.active-island .chrono-months-track:not(:empty) {
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.chrono-years-track,
.chrono-months-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    user-select: none;
}

.chrono-years-track::-webkit-scrollbar,
.chrono-months-track::-webkit-scrollbar {
    display: none;
}

.chrono-year,
.chrono-month {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    flex: 0 0 auto;
}

.chrono-year {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 3px 8px;
    letter-spacing: 0.5px;
}

body.light-mode .chrono-year {
    color: #444 !important;
}

.chrono-year:hover,
.chrono-year.active {
    color: var(--lw-accent);
    transform: scale(1.12);
    text-shadow: 0 0 14px rgba(var(--lw-color-cyan-rgb), 0.6);
}

.chrono-month {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    padding: 4px 8px;
    letter-spacing: 0.5px;
}

body.light-mode .chrono-month {
    color: #666 !important;
}

.chrono-month:hover,
.chrono-month.active {
    color: #fff !important;
    transform: scale(1.1);
}

body.light-mode .chrono-month:hover,
body.light-mode .chrono-month.active {
    color: #000 !important;
}

.chrono-months-track {
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.timeline-chronometer.active-island .chrono-months-track:not(:empty) {
    max-height: 50px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- 5. Popup & Markers --- */
.lw-timeline-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.lw-timeline-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: var(--lw-glass-blur);
    -webkit-backdrop-filter: var(--lw-glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    width: 320px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lw-timeline-popup.active .popup-glass {
    transform: scale(1);
}

/* Popup Header: flex row to position close button at right */
.popup-glass .popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    position: relative;
}

.popup-glass .popup-date {
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 1px;
    color: var(--lw-text, rgba(255, 255, 255, 0.8));
}

/* Close button: top-right, always visible in dark mode */
.popup-glass .popup-close {
    position: static;
    /* relies on flex layout for positioning */
    margin-left: auto;
    /* push to far right */
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    /* white in dark mode */
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.popup-glass .popup-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* popup title */
.popup-glass h3 {
    color: var(--lw-text, #fff);
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0 0 6px;
}

/* View Details button: visible on dark background */
.popup-glass .popup-btn.full-view {
    margin-top: 18px;
    padding: 10px 24px;
    background: transparent;
    border: 1.5px solid var(--lw-accent, rgba(255, 255, 255, 0.5));
    color: var(--lw-accent, #fff);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.popup-glass .popup-btn.full-view:hover {
    background: var(--lw-accent, rgba(255, 255, 255, 0.2));
    color: #000;
    box-shadow: 0 0 12px var(--lw-accent, rgba(255, 255, 255, 0.3));
}

/* Light mode overrides for popup */
body.light-mode .popup-glass {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body.light-mode .popup-glass .popup-close {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .popup-glass .popup-close:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.08);
}

body.light-mode .popup-glass h3 {
    color: #1a1a1a;
}

body.light-mode .popup-glass .popup-date {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .popup-glass .popup-btn.full-view {
    border-color: rgba(0, 0, 0, 0.4);
    color: rgba(0, 0, 0, 0.8);
}

body.light-mode .popup-glass .popup-btn.full-view:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #000;
    box-shadow: none;
}

/* --- 6. Mobile Adaptation (Media Queries) --- */
@media (max-width: 1024px) {
    .row-timeline {
        height: 650px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 12px !important;
    }

    .timeline-scroll-container {
        height: 100% !important;
        display: block !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .timeline-track {
        flex-direction: column !important;
        padding: 100px 0 40px !important;
    }

    .timeline-line {
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 2px !important;
        height: 100% !important;
        background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3) 10%, rgba(255, 255, 255, 0.3) 90%, transparent) !important;
    }

    /* Light Mode Overwrite for Mobile Axis */
    body.light-mode .timeline-line {
        background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2) 10%, rgba(0, 0, 0, 0.2) 90%, transparent) !important;
    }

    /* --- MOBILE ARCHITECTURE REFACTOR (V3) --- */

    /* 1. Reset Global Spacers & Alignments */
    .t-side-spacer {
        display: none !important;
    }

    /* 2. Unified Grid Row Model (Nodes & Markers) */
    .t-node,
    .t-end-marker,
    .t-future-marker {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) !important;
        width: 100% !important;
        margin-bottom: 50px !important;
        height: auto !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        align-items: center !important;
        /* Base center anchor */
    }

    /* 2b. Start/End Markers SPECIAL: Vertical Stacking for Center Alignment */
    .t-end-marker,
    .t-future-marker {
        grid-template-rows: auto auto !important;
        row-gap: 12px !important;
    }

    /* 3. Child Element Normalization (Highest Priority Reset) */
    .t-node .t-meta-group,
    .t-node .t-marker,
    .t-node .t-content,
    .t-end-marker .te-icon,
    .t-end-marker .te-label,
    .t-future-marker .tf-icon,
    .t-future-marker .tf-label {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        /* Kill desktop translateY(-50%) */
        margin: 0 !important;
        /* v3.3: HARD RESET all paddings to zero to kill "ghost offsets" from desktop Zig-Zag */
        padding: 0 !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* v3.4 [NODE-LOCK]: Force all Node siblings into same grid row to prevent implicit "content-sinking" */
    .t-node .t-meta-group,
    .t-node .t-marker,
    .t-node .t-content {
        grid-row: 1 !important;
        align-self: center !important;
    }

    /* 4. Column 2: The Physical Axis (Icons/Markers) */
    .t-node .t-marker,
    .t-end-marker .te-icon,
    .t-future-marker .tf-icon {
        grid-column: 2 !important;
        grid-row: 1 !important;
        /* Force to first row in marker model */
        justify-self: center !important;
        z-index: 5;
    }

    .t-node .t-marker {
        width: 12px !important;
        height: 12px !important;
        background: var(--lw-accent) !important;
        border: 2px solid #fff !important;
        box-shadow: 0 0 10px var(--lw-accent) !important;
        border-radius: 50% !important;
    }

    .t-end-marker .te-icon,
    .t-future-marker .tf-icon {
        font-size: 1.5rem !important;
    }

    /* 5. Start/End Markers Label Alignment (Force Center-Horizontal) */
    .t-end-marker .te-label,
    .t-future-marker .tf-label {
        grid-column: 1 / span 3 !important;
        /* Span across entire container */
        grid-row: 2 !important;
        /* Move to dedicated second row */
        text-align: center !important;
        justify-self: center !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 280px !important;
        font-weight: 600 !important;
    }

    /* 6. STYLE REFINEMENT (Must precede Alternating specs) */
    .t-node .t-content {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
        padding: 10px !important;
        /* Base padding, will be overridden by VERTICAL 0 in Section 7 */
        border-radius: 10px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .t-node .t-content h4,
    .t-node .t-content p {
        margin: 0 !important;
        /* Kill default margins to stop "content sinking" */
        padding: 0 !important;
    }

    .t-node .t-content h4 {
        margin-bottom: 4px !important;
        line-height: 1.2 !important;
    }

    .t-node .t-meta-group {
        display: flex !important;
        flex-direction: column !important;
        /* Unified Vertical Model (Icon on top of date) */
        gap: 2px !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        align-items: center !important;
    }

    /* 7. Robust Node Alternating Logic (Physical Matching & Specificity Lock) */

    /* Even Rows (layout-up) -> Content LEFT (Col 1), Meta RIGHT (Col 3) */
    .t-node.layout-up .t-content {
        grid-column: 1 !important;
        grid-row: 1 !important;
        /* LOCK */
        text-align: right !important;
        justify-self: end !important;
        padding: 0 15px 0 0 !important;
        /* VERTICAL 0: Kills Section 6 padding leakage */
        max-width: 145px !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    .t-node.layout-up .t-meta-group {
        grid-column: 3 !important;
        grid-row: 1 !important;
        /* LOCK */
        text-align: left !important;
        justify-self: start !important;
        padding: 0 0 0 15px !important;
        /* VERTICAL 0: Kills desktop padding */
        max-width: 145px !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    /* Odd Rows (layout-down) -> Meta LEFT (Col 1), Content RIGHT (Col 3) */
    .t-node.layout-down .t-meta-group {
        grid-column: 1 !important;
        grid-row: 1 !important;
        /* LOCK */
        text-align: right !important;
        justify-self: end !important;
        padding: 0 15px 0 0 !important;
        /* VERTICAL 0: Kills desktop padding */
        max-width: 145px !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    .t-node.layout-down .t-content {
        grid-column: 3 !important;
        grid-row: 1 !important;
        /* LOCK */
        text-align: left !important;
        justify-self: start !important;
        padding: 0 0 0 15px !important;
        /* VERTICAL 0: Kills Section 6 padding leakage */
        max-width: 145px !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    /* Chronometer Mobile Shrunk */
    #lw-chrono-surface {
        width: 130px !important;
        min-width: 130px !important;
        padding: 4px 12px !important;
    }

    /* 8. Light Mode Visibility Patch (Mobile) */
    body.light-mode .t-node .t-content {
        background: rgba(0, 0, 0, 0.03) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #1a1a1a !important;
    }

    body.light-mode .t-node .t-content h4 {
        color: #000 !important;
    }

    body.light-mode .t-node .t-content p {
        color: #444 !important;
    }

    body.light-mode .t-node .t-date-label {
        color: #555 !important;
    }

    body.light-mode .t-node .t-marker {
        border-color: #ccc !important;
        background: #fff !important;
    }
}

/* End of _timeline.css (BugFix-12: Hardcoded animations removed) */