        /* ===== 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;
        }
        [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;
        }

        /* ===== 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;
        }

        /* ===== 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;
        }
        .wiki-header-title {
            font-family: 'Source Serif 4', serif;
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--text-color);
            text-decoration: none;
        }
        .wiki-header-tagline {
            font-size: 0.75rem;
            color: var(--text-muted);
        }
        /* ===== 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; }
        }

        /* ===== Tabs ===== */
        .wiki-tabs {
            display: flex;
            justify-content: space-between;
            align-items: stretch;
            background: var(--tab-inactive-bg);
            border-bottom: 1px solid var(--border-color);
            padding: 0 16px;
            font-size: 0.85rem;
        }
        .wiki-tabs-left, .wiki-tabs-right {
            display: flex;
            align-items: stretch;
        }
        .wiki-tab {
            padding: 8px 14px;
            color: var(--link-color);
            text-decoration: none;
            border: 1px solid transparent;
            border-bottom: none;
            margin-bottom: -1px;
            cursor: pointer;
        }
        .wiki-tab:hover { text-decoration: underline; }
        .wiki-tab.active {
            background: var(--tab-active-bg);
            color: var(--text-color);
            border-color: var(--border-color);
            border-bottom: 1px solid var(--tab-active-bg);
            font-weight: 600;
            cursor: default;
            text-decoration: none;
        }
        .wiki-tabs-right a {
            padding: 8px 14px;
            color: var(--link-color);
            text-decoration: none;
        }
        .wiki-tabs-right a:hover { text-decoration: underline; }

        /* ===== Main Content ===== */
        .main-content {
            max-width: 900px;
            margin: 0 auto;
            padding: 32px 24px 60px;
            position: relative;
        }
        .main-content h1 {
            font-family: 'Source Serif 4', serif;
            font-size: 2rem;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 6px;
            margin: 0 0 8px;
        }
        .page-intro {
            color: var(--text-muted);
            font-size: 0.95rem;
            margin-bottom: 28px;
        }

        /* ===== Writings TOC ===== */
        .writings-toc {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            padding: 16px 20px;
            margin-bottom: 32px;
            max-width: 420px;
        }
        .writings-toc h2 {
            font-size: 1rem;
            margin: 0 0 10px;
        }
        .writings-toc ol {
            margin: 0;
            padding-left: 24px;
        }
        .writings-toc li {
            margin-bottom: 5px;
            font-size: 0.9rem;
        }
        .writings-toc a {
            color: var(--link-color);
            text-decoration: none;
        }
        .writings-toc a:hover { text-decoration: underline; }

        /* ===== Writing Entries (blurred) ===== */
        .writing-entry {
            margin-bottom: 36px;
            padding-bottom: 24px;
            border-bottom: 1px solid var(--border-color);
            user-select: none;
            -webkit-user-select: none;
        }
        .writing-entry h2 {
            font-family: 'Source Serif 4', serif;
            font-size: 1.3rem;
            margin: 0 0 4px;
        }
        .writing-meta {
            font-size: 0.78rem;
            color: var(--text-muted);
            margin-bottom: 12px;
            filter: blur(5px);
        }
        .writing-entry p {
            font-size: 0.95rem;
            line-height: 1.7;
            margin: 0 0 12px;
            filter: blur(5px);
        }

        /* ===== Text Size (global, set from index Appearance panel) ===== */
        [data-textsize="small"] .main-content { font-size: 0.88rem; }
        [data-textsize="large"] .main-content { font-size: 1.1rem; }
        /* ===== Content Width (global) ===== */
        [data-width="wide"] .main-content { max-width: none; }

        /* ===== Lock Overlay ===== */
        .lock-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 200;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(16, 20, 24, 0.55);
            pointer-events: all;
        }
        .lock-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 48px 40px 40px;
            text-align: center;
            max-width: 420px;
            width: 90%;
            box-shadow: 0 12px 48px rgba(0,0,0,0.4);
        }
        .lock-icon {
            width: 48px;
            height: 48px;
            color: var(--text-muted);
            margin-bottom: 20px;
        }
        .lock-title {
            font-family: 'Source Serif 4', serif;
            font-size: 1.4rem;
            margin: 0 0 8px;
            color: var(--text-color);
        }
        .lock-subtitle {
            font-size: 0.88rem;
            color: var(--text-muted);
            margin: 0 0 4px;
        }
        .lock-date {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-color);
            margin: 0 0 16px;
        }
        .lock-description {
            font-size: 0.82rem;
            color: var(--text-muted);
            line-height: 1.55;
            max-width: 380px;
            margin: 0 auto 28px;
            text-align: center;
        }

        /* ===== Countdown ===== */
        .lock-countdown {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .cd-unit {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 52px;
        }
        .cd-num {
            font-family: 'Courier New', monospace;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--text-color);
            line-height: 1;
        }
        .cd-label {
            font-size: 0.65rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-top: 4px;
        }
        .cd-sep {
            font-family: 'Courier New', monospace;
            font-size: 1.5rem;
            color: var(--text-muted);
            padding-bottom: 16px;
        }

        /* ===== Lock Back Button ===== */
        .lock-back-btn {
            display: inline-block;
            margin-top: 24px;
            padding: 8px 20px;
            font-size: 0.85rem;
            color: var(--link-color);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            text-decoration: none;
            transition: background 0.2s, color 0.2s;
        }
        .lock-back-btn:hover {
            background: var(--link-color);
            color: #fff;
        }

        /* ===== Footer ===== */
        .wiki-footer {
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-color);
            padding: 16px;
            text-align: center;
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        .wiki-footer-inner {
            max-width: 900px;
            margin: 0 auto;
        }
        .footer-links {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            margin-bottom: 8px;
        }
        .footer-links a {
            color: var(--link-color);
            text-decoration: none;
        }
        .footer-links a:hover { text-decoration: underline; }
        .footer-copy { margin-bottom: 4px; }
        .footer-self-hosted {
            font-size: 0.7rem;
            color: var(--text-muted);
            opacity: 0.6;
        }

        /* ===== Responsive ===== */
        @media (max-width: 600px) {
            .main-content { padding: 20px 16px 40px; }
            .lock-card { padding: 32px 24px 28px; }
            .cd-num { font-size: 1.4rem; }
            .cd-unit { min-width: 40px; }
        }
