        /* ===== Theme Variables ===== */
        :root {
            --bg-color: #fff;
            --bg-secondary: #f8f9fa;
            --text-color: #1a1a1a;
            --text-muted: #5a5a5a;
            --border-color: #a2a9b1;
            --link-color: #0645ad;
            --link-visited: #0b0080;
            --header-bg: #fff;
            --header-border: #a2a9b1;
            --tab-active-bg: #fff;
            --tab-inactive-bg: #eaecf0;
            --accent-line: #0645ad;
            --tl-line-color: #d8dbe0;
            --tl-dot-border: #c8ccd1;
            --tl-dot-active: #0645ad;
            --tag-bg: #f0f2f5;
            --tag-text: #555;

            /* Category accent colors */
            --cat-work: #2563eb;
            --cat-project: #059669;
            --cat-education: #7c3aed;
            --cat-business: #d97706;
            --cat-personal: #e11d48;
            --kw-color: #2563eb;
        }
        [data-theme="dark"] {
            --bg-color: #101418;
            --bg-secondary: #1a1f24;
            --text-color: #e0e0e0;
            --text-muted: #a0a0a0;
            --border-color: #3a3f44;
            --link-color: #6b9eff;
            --link-visited: #9d8cff;
            --header-bg: #1a1f24;
            --header-border: #3a3f44;
            --tab-active-bg: #101418;
            --tab-inactive-bg: #2a2f34;
            --accent-line: #6b9eff;
            --tl-line-color: #2a2f34;
            --tl-dot-border: #3a3f44;
            --tl-dot-active: #6b9eff;
            --tag-bg: #252a30;
            --tag-text: #a0a0a0;

            --cat-work: #60a5fa;
            --cat-project: #34d399;
            --cat-education: #a78bfa;
            --cat-business: #fbbf24;
            --cat-personal: #fb7185;
            --kw-color: #60a5fa;
        }

        /* ===== Reset & Base ===== */
        * { box-sizing: border-box; }
        body {
            font-family: 'Source Serif 4', 'Linux Libertine', 'Georgia', 'Times', serif;
            background: var(--bg-color);
            color: var(--text-color);
            margin: 0;
            padding: 0;
            transition: background 0.3s, color 0.3s;
        }

        /* ===== Scroll Progress Bar ===== */
        .scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 2px;
            width: 0%;
            background: var(--accent-line);
            z-index: 150;
            transition: width 0.1s linear;
        }

        /* ===== Header Bar ===== */
        .wiki-header {
            background: var(--header-bg);
            border-bottom: 1px solid var(--header-border);
            padding: 8px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .wiki-header-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .wiki-header-logo {
            width: 32px;
            height: 32px;
            image-rendering: pixelated;
            image-rendering: -moz-crisp-edges;
            -ms-interpolation-mode: nearest-neighbor;
        }
        .wiki-header-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-color);
            text-decoration: none;
        }
        .wiki-header-tagline {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-left: 8px;
        }
        /* ===== Status Light ===== */
        .status-wrap {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-left: 10px;
            position: relative;
            cursor: default;
        }
        .status-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            display: inline-block;
            background: #555;
        }
        .status-dot.status-online {
            background: #28c840;
            box-shadow: 0 0 5px rgba(40, 200, 64, 0.5);
            animation: statusPulse 3s ease-in-out infinite;
        }
        @keyframes statusPulse {
            0%, 100% { box-shadow: 0 0 4px rgba(40, 200, 64, 0.4); }
            50%      { box-shadow: 0 0 7px rgba(40, 200, 64, 0.7); }
        }
        .status-dot.status-offline {
            background: #ff5f57;
            box-shadow: 0 0 5px rgba(255, 95, 87, 0.45);
        }
        .status-dot.status-vacation {
            background: transparent;
            border: 1px solid var(--border-color);
            box-shadow: none;
        }
        .status-text {
            font-size: 0.62rem;
            color: var(--text-muted);
            white-space: nowrap;
        }
        .status-tooltip {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            left: 50%;
            transform: translateX(-50%);
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            padding: 5px 10px;
            font-size: 0.68rem;
            white-space: nowrap;
            z-index: 200;
            border-radius: 3px;
            color: var(--text-color);
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            pointer-events: none;
        }
        .status-wrap:hover .status-tooltip {
            display: block;
        }
        @media (max-width: 600px) {
            .status-text { display: none; }
            .status-dot { display: none; }
        }
        .wiki-header-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* ===== Appearance Panel ===== */
        .appearance-panel { position: relative; }
        .appearance-btn {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            padding: 6px 12px;
            cursor: pointer;
            font-size: 0.85rem;
            color: var(--text-color);
            border-radius: 2px;
        }
        .appearance-btn:hover { background: var(--tab-inactive-bg); }
        .appearance-dropdown {
            display: none;
            position: absolute;
            right: 0;
            top: 100%;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            padding: 12px;
            min-width: 160px;
            z-index: 200;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        .appearance-dropdown.show { display: block; }
        .appearance-dropdown label {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 4px 0;
            cursor: pointer;
            font-size: 0.9rem;
        }
        .appearance-dropdown input[type="radio"] { margin: 0; }

        /* ===== Tab Navigation ===== */
        .wiki-tabs {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-secondary);
            padding: 0 16px;
        }
        .wiki-tabs-left { display: flex; }
        .wiki-tab {
            padding: 8px 16px;
            font-size: 0.9rem;
            color: var(--link-color);
            text-decoration: none;
            border: 1px solid transparent;
            border-bottom: none;
            margin-bottom: -1px;
            background: var(--tab-inactive-bg);
        }
        .wiki-tab.active {
            background: var(--bg-color);
            border-color: var(--border-color);
            color: var(--text-color);
        }
        .wiki-tabs-right {
            display: flex;
            gap: 16px;
            padding-bottom: 8px;
            font-size: 0.85rem;
        }
        .wiki-tabs-right a { color: var(--link-color); text-decoration: none; }

        /* ===== Main Content ===== */
        .main-content {
            max-width: 680px;
            margin: 0 auto;
            padding: 48px 24px 80px;
        }
        h1 {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0 0 4px;
            border: none;
            padding: 0;
            letter-spacing: -0.02em;
        }
        .page-intro {
            color: var(--text-muted);
            margin: 0 0 40px;
            font-size: 0.9rem;
            line-height: 1.5;
        }

        /* ===== Filter Chips ===== */
        .tl-filters {
            display: flex;
            gap: 8px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }
        .tl-chip {
            font-family: 'Montserrat', sans-serif;
            font-size: 0.7rem;
            font-weight: 600;
            padding: 5px 14px;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .tl-chip:hover {
            border-color: var(--text-color);
            color: var(--text-color);
        }
        .tl-chip.active {
            background: var(--text-color);
            color: var(--bg-color);
            border-color: var(--text-color);
        }
        .tl-chip[data-cat="work"].active      { background: var(--cat-work); border-color: var(--cat-work); }
        .tl-chip[data-cat="project"].active   { background: var(--cat-project); border-color: var(--cat-project); }
        .tl-chip[data-cat="education"].active { background: var(--cat-education); border-color: var(--cat-education); }
        .tl-chip[data-cat="business"].active  { background: var(--cat-business); border-color: var(--cat-business); }
        .tl-chip[data-cat="personal"].active  { background: var(--cat-personal); border-color: var(--cat-personal); }

        /* ===== Timeline ===== */
        .tl {
            position: relative;
            padding-left: 28px;
        }
        .tl::before {
            content: '';
            position: absolute;
            left: 5px;
            top: 4px;
            bottom: 4px;
            width: 1px;
            background: var(--tl-line-color);
        }

        .tl-item {
            position: relative;
            margin-bottom: 44px;
            opacity: 0;
            transform: translateY(16px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        .tl-item.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .tl-item:last-child { margin-bottom: 0; }

        /* Dot — colored per category */
        .tl-dot {
            position: absolute;
            left: -28px;
            top: 6px;
            width: 11px;
            height: 11px;
            background: var(--bg-color);
            border: 2px solid var(--tl-dot-border);
            border-radius: 50%;
            z-index: 2;
            transform: scale(0);
            transition: transform 0.2s ease, border-color 0.2s, background 0.2s;
        }
        .tl-item.visible .tl-dot {
            transform: scale(1);
        }
        .tl-item[data-cat="work"] .tl-dot          { border-color: var(--cat-work); background: var(--cat-work); }
        .tl-item[data-cat="project"] .tl-dot       { border-color: var(--cat-project); background: var(--cat-project); }
        .tl-item[data-cat="education"] .tl-dot     { border-color: var(--cat-education); background: var(--cat-education); }
        .tl-item[data-cat="business"] .tl-dot      { border-color: var(--cat-business); background: var(--cat-business); }
        .tl-item[data-cat="personal"] .tl-dot      { border-color: var(--cat-personal); background: var(--cat-personal); }

        /* Category badge */
        .tl-cat {
            font-family: 'Montserrat', sans-serif;
            font-size: 0.58rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 4px;
        }
        .tl-item[data-cat="work"] .tl-cat          { color: var(--cat-work); }
        .tl-item[data-cat="project"] .tl-cat       { color: var(--cat-project); }
        .tl-item[data-cat="education"] .tl-cat     { color: var(--cat-education); }
        .tl-item[data-cat="business"] .tl-cat      { color: var(--cat-business); }
        .tl-item[data-cat="personal"] .tl-cat      { color: var(--cat-personal); }

        /* Keyword highlight */
        .kw { color: var(--kw-color); font-weight: 600; }

        /* Card content */
        .tl-year {
            font-family: 'Montserrat', sans-serif;
            font-size: 0.68rem;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 3px;
        }
        .tl-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 1px;
            letter-spacing: -0.01em;
        }
        .tl-role {
            font-size: 0.84rem;
            color: var(--text-muted);
            font-style: italic;
            margin-bottom: 8px;
        }
        .tl-desc {
            font-size: 0.86rem;
            line-height: 1.7;
            color: var(--text-muted);
        }
        .tl-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 10px;
        }
        .tl-tag {
            font-family: 'Montserrat', sans-serif;
            font-size: 0.62rem;
            font-weight: 600;
            padding: 2px 9px;
            background: var(--tag-bg);
            color: var(--tag-text);
            border-radius: 3px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .tl-item[data-cat="work"] .tl-tag      { color: var(--cat-work); }
        .tl-item[data-cat="project"] .tl-tag   { color: var(--cat-project); }
        .tl-item[data-cat="education"] .tl-tag { color: var(--cat-education); }
        .tl-item[data-cat="business"] .tl-tag  { color: var(--cat-business); }
        .tl-item[data-cat="personal"] .tl-tag  { color: var(--cat-personal); }
        .tl-link {
            display: inline-block;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.78rem;
            color: var(--link-color);
            font-weight: 600;
            margin-top: 10px;
            text-decoration: none;
        }
        .tl-link:hover { text-decoration: underline; }

        /* ===== Footer ===== */
        .wiki-footer {
            border-top: 1px solid var(--border-color);
            background: var(--bg-secondary);
            padding: 32px 24px;
            text-align: center;
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        .wiki-footer-inner {
            max-width: 700px;
            margin: 0 auto;
        }
        .wiki-footer a {
            color: var(--link-color);
            text-decoration: none;
            margin: 0 8px;
        }
        .wiki-footer a:hover { text-decoration: underline; }
        .wiki-footer .footer-links { margin: 12px 0; }
        .wiki-footer .footer-copy {
            margin-top: 16px;
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        .footer-self-hosted {
            margin-top: 8px;
            font-size: 0.75rem;
            color: var(--text-muted);
            opacity: 0.6;
        }

        /* ===== Responsive ===== */
        @media (max-width: 768px) {
            .wiki-header-tagline { display: none; }
            .main-content { padding: 32px 16px 60px; }
        }
        @media (max-width: 480px) {
            .main-content { padding: 24px 14px 40px; }
            .tl-item { margin-bottom: 32px; }
        }

        /* ===== Reduced Motion ===== */
        @media (prefers-reduced-motion: reduce) {
            .tl-item { opacity: 1; transform: none; transition: none; }
            .tl-dot { transform: scale(1); transition: none; }
            .scroll-progress { transition: none; }
        }
    
