/* ---------- RESET & ROOT VARIABLES ---------- */
        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            /* --- Typography System --- */
            --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
            --font-display: 'Syne', 'Inter', -apple-system, sans-serif;
            --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

            --fw-light: 300;
            --fw-regular: 400;
            --fw-medium: 500;
            --fw-semibold: 600;
            --fw-bold: 700;
            --fw-extrabold: 800;

            --fs-base: clamp(1rem, 1vw + 0.75rem, 1.125rem);
            --fs-small: clamp(0.75rem, 0.8vw + 0.5rem, 0.875rem);
            --fs-xs: clamp(0.625rem, 0.6vw + 0.4rem, 0.75rem);
            --fs-tiny: clamp(0.55rem, 0.5vw + 0.3rem, 0.65rem);

            --fs-h1: clamp(2.2rem, 5vw + 1rem, 4rem);
            --fs-h2: clamp(1.6rem, 3vw + 0.8rem, 2.8rem);
            --fs-h3: clamp(1.2rem, 2vw + 0.6rem, 1.8rem);
            --fs-h4: clamp(1rem, 1.5vw + 0.5rem, 1.4rem);
            --fs-h5: clamp(0.9rem, 1vw + 0.4rem, 1.1rem);
            --fs-h6: clamp(0.8rem, 0.8vw + 0.4rem, 1rem);

            --lh-tight: 1.1;
            --lh-snug: 1.3;
            --lh-normal: 1.6;
            --lh-relaxed: 1.75;
            --lh-loose: 2;

            --ls-tight: -0.03em;
            --ls-normal: -0.01em;
            --ls-wide: 0.02em;
            --ls-wider: 0.05em;

            /* --- Colors --- */
            --accent: #2563EB;
            --accent-hover: #1D4ED8;
            --accent-glow: rgba(37, 99, 235, 0.35);
            --accent-soft: rgba(37, 99, 235, 0.08);
            --accent-border: rgba(37, 99, 235, 0.20);

            --bg-primary: #F1F5F9;
            --bg-surface: rgba(255, 255, 255, 0.68);
            --bg-card: rgba(255, 255, 255, 0.72);
            --bg-card-hover: rgba(255, 255, 255, 0.84);
            --text-primary: #0F172A;
            --text-secondary: #334155;
            --text-muted: #64748B;
            --border: rgba(15, 23, 42, 0.08);
            --border-light: rgba(15, 23, 42, 0.04);
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
            --shadow-glow: 0 8px 32px rgba(37, 99, 235, 0.12);
            --header-bg: rgba(255, 255, 255, 0.72);
            --glass-border: rgba(255, 255, 255, 0.30);
            --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
        }

        [data-theme="dark"] {
            --bg-primary: #020617;
            --bg-surface: rgba(15, 23, 42, 0.72);
            --bg-card: rgba(30, 41, 59, 0.72);
            --bg-card-hover: rgba(30, 41, 59, 0.88);
            --text-primary: #F1F5F9;
            --text-secondary: #94A3B8;
            --text-muted: #64748B;
            --accent: #3B82F6;
            --accent-hover: #60A5FA;
            --accent-glow: rgba(59, 130, 246, 0.35);
            --accent-soft: rgba(59, 130, 246, 0.10);
            --accent-border: rgba(59, 130, 246, 0.25);
            --border: rgba(248, 250, 252, 0.06);
            --border-light: rgba(248, 250, 252, 0.03);
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
            --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.40);
            --shadow-glow: 0 8px 32px rgba(59, 130, 246, 0.15);
            --header-bg: rgba(15, 23, 42, 0.78);
            --glass-border: rgba(248, 250, 252, 0.08);
            --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
        }

        :root {
            --radius: 24px;
            --radius-sm: 12px;
            --radius-xs: 8px;
            --transition: all 0.30s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
        }

        html {
            scroll-behavior: smooth;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: var(--font-sans);
            font-weight: var(--fw-regular);
            font-size: var(--fs-base);
            line-height: var(--lh-normal);
            color: var(--text-primary);
            background: var(--bg-primary);
            transition: background 0.4s ease, color 0.3s ease;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ---------- TYPOGRAPHY ---------- */
        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: var(--font-display);
            font-weight: var(--fw-bold);
            line-height: var(--lh-tight);
            letter-spacing: var(--ls-tight);
            color: var(--text-primary);
            margin-bottom: 0.5em;
        }

        h1 {
            font-size: var(--fs-h1);
            font-weight: var(--fw-extrabold);
            letter-spacing: var(--ls-tight);
        }
        h2 {
            font-size: var(--fs-h2);
            font-weight: var(--fw-bold);
        }
        h3 {
            font-size: var(--fs-h3);
            font-weight: var(--fw-semibold);
            line-height: var(--lh-snug);
            letter-spacing: var(--ls-normal);
        }
        h4 {
            font-size: var(--fs-h4);
            font-weight: var(--fw-semibold);
            letter-spacing: var(--ls-normal);
        }
        h5 {
            font-size: var(--fs-h5);
            font-weight: var(--fw-medium);
            letter-spacing: var(--ls-normal);
        }
        h6 {
            font-size: var(--fs-h6);
            font-weight: var(--fw-medium);
            letter-spacing: var(--ls-wider);
            text-transform: uppercase;
        }

        p,
        li,
        .text-body {
            font-family: var(--font-sans);
            font-weight: var(--fw-regular);
            font-size: var(--fs-base);
            line-height: var(--lh-relaxed);
            color: var(--text-secondary);
            margin-bottom: 0.75em;
        }

        .text-small {
            font-size: var(--fs-small);
            line-height: var(--lh-normal);
        }
        .text-xs {
            font-size: var(--fs-xs);
            line-height: var(--lh-normal);
        }
        .text-tiny {
            font-size: var(--fs-tiny);
            line-height: var(--lh-normal);
        }
        .text-muted {
            color: var(--text-muted);
        }

        strong,
        b {
            font-weight: var(--fw-semibold);
            color: var(--text-primary);
        }

        a {
            font-family: inherit;
            color: var(--accent);
            text-decoration: none;
            font-weight: var(--fw-medium);
            transition: var(--transition);
        }
        a:hover {
            text-decoration: underline;
        }

        code,
        kbd,
        pre,
        samp {
            font-family: var(--font-mono);
            font-size: 0.9em;
            background: var(--bg-surface);
            padding: 0.2em 0.4em;
            border-radius: var(--radius-xs);
            border: 1px solid var(--border);
            color: var(--text-primary);
        }
        pre {
            padding: 1em 1.2em;
            overflow-x: auto;
            line-height: var(--lh-snug);
            font-size: var(--fs-small);
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
        }
        pre code {
            background: transparent;
            border: none;
            padding: 0;
            font-size: inherit;
        }

        .font-display {
            font-family: var(--font-display);
        }
        .font-sans {
            font-family: var(--font-sans);
        }
        .font-mono {
            font-family: var(--font-mono);
        }

        /* ---------- SKIP LINK ---------- */
        .skip-link {
            position: absolute;
            top: -100%;
            left: 20px;
            z-index: 10000;
            background: var(--accent);
            color: #fff;
            font-weight: var(--fw-semibold);
            font-size: var(--fs-small);
            padding: 12px 24px;
            border-radius: 0 0 var(--radius-sm) var(--radius-sm);
            transition: top 0.25s ease;
            text-decoration: none;
        }
        .skip-link:focus {
            top: 0;
        }

        /* ---------- PROGRESS BAR ---------- */
        .progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent), var(--accent-hover));
            transform-origin: left;
            transform: scaleX(0);
            z-index: 1000;
            will-change: transform;
            border-radius: 0 2px 2px 0;
            box-shadow: 0 0 12px var(--accent-glow);
        }

        /* ---------- GLASS HEADER ---------- */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 999;
            padding: 0 24px;
            background: var(--header-bg);
            backdrop-filter: blur(24px) saturate(1.4);
            -webkit-backdrop-filter: blur(24px) saturate(1.4);
            border-bottom: 1px solid var(--border);
            transition: background 0.4s ease, border-color 0.3s ease, box-shadow 0.4s ease;
            box-shadow: 0 0 0 0 transparent;
        }
        .header.scrolled {
            background: var(--header-bg);
            box-shadow: var(--shadow);
            border-bottom-color: var(--border);
        }

        .header-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            gap: 16px;
            min-height: 68px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            font-weight: var(--fw-bold);
            font-size: 1.15rem;
            font-family: var(--font-display);
            color: var(--text-primary);
            flex-shrink: 0;
            transition: var(--transition);
        }
        .logo:hover {
            opacity: 0.85;
            text-decoration: none;
        }
        .logo img {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--border);
            transition: transform 0.4s var(--ease-out);
            flex-shrink: 0;
        }
        .logo img:hover {
            transform: scale(1.06);
        }
        .logo span {
            letter-spacing: var(--ls-tight);
        }

        .header-nav {
            display: flex;
            gap: 4px;
            align-items: center;
            flex-wrap: wrap;
        }
        .header-nav a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: var(--fw-medium);
            font-size: var(--fs-small);
            padding: 8px 16px;
            border-radius: var(--radius-xs);
            transition: var(--transition);
            white-space: nowrap;
            position: relative;
        }
        .header-nav a:hover {
            color: var(--accent);
            background: var(--accent-soft);
            text-decoration: none;
        }
        .header-nav a.active {
            color: var(--accent);
            background: var(--accent-soft);
            font-weight: var(--fw-semibold);
        }
        .header-nav a.active::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 2px;
            background: var(--accent);
            border-radius: 2px;
        }

        .header-actions {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
            align-items: center;
        }

        .icon-btn {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: 50%;
            width: 42px;
            height: 42px;
            min-width: 42px;
            min-height: 42px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            color: var(--text-primary);
            font-size: 1rem;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: var(--shadow);
        }
        .icon-btn:hover {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
            transform: scale(1.05);
            box-shadow: 0 4px 16px var(--accent-glow);
        }
        .icon-btn:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 6px 4px;
            border-radius: var(--radius-xs);
            transition: var(--transition);
            width: 40px;
            height: 40px;
            align-items: center;
            justify-content: center;
        }
        .hamburger:hover {
            background: var(--accent-soft);
        }
        .hamburger span {
            display: block;
            width: 24px;
            height: 2.5px;
            background: var(--text-primary);
            border-radius: 4px;
            transition: var(--transition);
            transform-origin: center;
        }
        .hamburger.active span:nth-child(1) {
            transform: translateY(7.5px) rotate(45deg);
        }
        .hamburger.active span:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }
        .hamburger.active span:nth-child(3) {
            transform: translateY(-7.5px) rotate(-45deg);
        }

        .mobile-menu {
            display: none;
            position: fixed;
            top: 68px;
            left: 0;
            right: 0;
            background: var(--header-bg);
            backdrop-filter: blur(32px) saturate(1.6);
            -webkit-backdrop-filter: blur(32px) saturate(1.6);
            border-bottom: 1px solid var(--border);
            padding: 16px 24px 24px;
            z-index: 998;
            animation: menuSlideDown 0.30s var(--ease-out) both;
            box-shadow: var(--shadow-lg);
        }
        .mobile-menu.open {
            display: block;
        }
        @keyframes menuSlideDown {
            from {
                opacity: 0;
                transform: translateY(-12px) scale(0.98);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        .mobile-menu a {
            display: block;
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: var(--fw-medium);
            font-size: var(--fs-base);
            padding: 12px 16px;
            border-radius: var(--radius-xs);
            transition: var(--transition);
        }
        .mobile-menu a:hover {
            color: var(--accent);
            background: var(--accent-soft);
            text-decoration: none;
        }
        .mobile-menu a.active {
            color: var(--accent);
            background: var(--accent-soft);
            font-weight: var(--fw-semibold);
        }

        /* ---------- CONTAINER ---------- */
        .container {
            max-width: 1060px;
            margin: 0 auto;
            padding: 0 24px;
            width: 100%;
        }

        /* ---------- HERO ---------- */
        .hero {
            text-align: center;
            padding: 120px 0 40px;
            position: relative;
        }
        .hero::after {
            content: '';
            position: absolute;
            top: 60px;
            left: 50%;
            transform: translateX(-50%);
            width: 320px;
            height: 320px;
            background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
            border-radius: 50%;
            opacity: 0.22;
            pointer-events: none;
            z-index: 0;
        }
        .hero>* {
            position: relative;
            z-index: 1;
        }
        .hero h1 {
            font-family: var(--font-display);
            font-size: clamp(2.5rem, 6vw, var(--fs-h1));
            font-weight: var(--fw-extrabold);
            letter-spacing: var(--ls-tight);
            line-height: var(--lh-tight);
            color: var(--text-primary);
            margin: 0;
        }
        .hero-subtitle {
            font-family: var(--font-sans);
            font-size: var(--fs-base);
            font-weight: var(--fw-regular);
            line-height: 1.6;
            color: var(--text-secondary);
            letter-spacing: var(--ls-normal);
            margin: 12px auto 0;
            max-width: 42rem;
        }
        .version-badge {
            display: inline-flex;
            align-items: center;
            gap: 14px;
            margin-top: 18px;
            padding: 8px 24px;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: 40px;
            font-size: var(--fs-small);
            font-weight: var(--fw-medium);
            color: var(--text-secondary);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: var(--shadow);
        }
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(34, 197, 94, 0.12);
            padding: 4px 14px;
            border-radius: 24px;
            color: #22c55e;
            font-size: var(--fs-xs);
            font-weight: var(--fw-semibold);
        }
        .dot {
            width: 7px;
            height: 7px;
            background: #22c55e;
            border-radius: 50%;
            animation: pulse-dot 2.4s ease-in-out infinite;
        }
        @keyframes pulse-dot {
            0%,
            100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.35;
                transform: scale(0.75);
            }
        }

        /* ---------- TABLIST ---------- */
        .tablist-wrapper {
            margin: 28px 0 40px;
        }
        .tablist {
            display: flex;
            gap: 6px;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 6px;
            backdrop-filter: blur(16px) saturate(1.4);
            -webkit-backdrop-filter: blur(16px) saturate(1.4);
            box-shadow: var(--shadow);
            list-style: none;
            flex-wrap: wrap;
        }
        .tablist-item {
            flex: 1;
            min-width: 80px;
        }
        .tab-btn {
            width: 100%;
            padding: 12px 18px;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-family: var(--font-sans);
            font-weight: var(--fw-semibold);
            font-size: var(--fs-small);
            cursor: pointer;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: var(--transition);
            white-space: nowrap;
        }
        .tab-btn:hover {
            background: var(--accent-soft);
            color: var(--accent);
        }
        .tab-btn[aria-selected="true"] {
            background: var(--accent);
            color: #fff;
            box-shadow: 0 4px 20px var(--accent-glow);
        }
        .tab-btn:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        .tabpanel {
            display: none;
            animation: fadeUp 0.45s var(--ease-out) both;
        }
        .tabpanel[aria-hidden="false"] {
            display: block;
        }
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(18px) scale(0.98);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* ---------- GLASS CARDS ---------- */
        .card {
            background: var(--bg-card);
            backdrop-filter: blur(20px) saturate(1.4);
            -webkit-backdrop-filter: blur(20px) saturate(1.4);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 36px 40px;
            margin: 0 0 28px 0;
            transition: var(--transition);
            box-shadow: var(--shadow);
        }
        .card:hover {
            box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-border);
            background: var(--bg-card-hover);
            transform: translateY(-2px);
        }

        .card-header {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 28px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
            flex-wrap: wrap;
        }
        .card-icon {
            width: 56px;
            height: 56px;
            min-width: 56px;
            background: linear-gradient(135deg, var(--accent), var(--accent-hover));
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            color: #fff;
            flex-shrink: 0;
            box-shadow: 0 4px 20px var(--accent-glow);
        }
        .card-header h2 {
            font-family: var(--font-display);
            font-size: var(--fs-h2);
            font-weight: var(--fw-bold);
            letter-spacing: var(--ls-tight);
            margin-bottom: 2px;
            line-height: var(--lh-tight);
        }
        .card-header .meta {
            font-size: var(--fs-small);
            font-weight: var(--fw-regular);
            color: var(--text-muted);
        }

        /* ---------- TOC ---------- */
        .toc-wrapper {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 16px 20px;
            margin-bottom: 28px;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: var(--shadow);
        }
        .toc-title {
            font-family: var(--font-display);
            font-weight: var(--fw-semibold);
            font-size: var(--fs-small);
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: var(--ls-wider);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .toc-list {
            display: flex;
            flex-wrap: wrap;
            gap: 4px 12px;
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .toc-list li {
            margin: 0;
            padding: 0;
        }
        .toc-list a {
            font-size: var(--fs-xs);
            font-weight: var(--fw-medium);
            color: var(--text-secondary);
            text-decoration: none;
            padding: 4px 8px;
            border-radius: var(--radius-xs);
            transition: var(--transition);
            display: inline-block;
        }
        .toc-list a:hover {
            color: var(--accent);
            background: var(--accent-soft);
            text-decoration: none;
        }
        .toc-list a[aria-current="location"] {
            color: var(--accent);
            background: var(--accent-soft);
            font-weight: var(--fw-semibold);
        }

        /* ---------- CONTENT SECTIONS ---------- */
        .section-anchor {
            scroll-margin-top: 90px;
            display: block;
            position: relative;
        }

        h3 {
            font-family: var(--font-display);
            font-size: var(--fs-h3);
            font-weight: var(--fw-semibold);
            line-height: var(--lh-snug);
            letter-spacing: var(--ls-normal);
            margin: 28px 0 12px;
            color: var(--text-primary);
        }

        p,
        li {
            font-family: var(--font-sans);
            font-size: var(--fs-base);
            line-height: var(--lh-relaxed);
            color: var(--text-secondary);
            margin-bottom: 0.75em;
        }

        ul,
        ol {
            padding-left: 24px;
            margin-bottom: 18px;
        }
        ul li,
        ol li {
            margin-bottom: 6px;
        }

        .credit-box {
            background: var(--bg-primary);
            border-left: 4px solid var(--accent);
            padding: 16px 22px;
            font-family: var(--font-mono);
            margin: 16px 0;
            border-radius: var(--radius-sm);
            font-size: var(--fs-small);
            color: var(--text-secondary);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }
        .highlight-box {
            background: var(--accent-soft);
            border: 1px solid var(--accent-border);
            border-radius: var(--radius-sm);
            padding: 18px 24px;
            margin: 16px 0;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }
        .highlight-box p {
            margin-bottom: 0;
            color: var(--text-primary);
            font-weight: var(--fw-medium);
        }

        /* ---------- COPY TO CLIPBOARD ---------- */
        .copy-container {
            position: relative;
        }
        .copy-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-secondary);
            transition: var(--transition);
            z-index: 2;
            font-size: 0.8rem;
            box-shadow: var(--shadow);
        }
        .copy-btn:hover {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
            transform: scale(1.08);
            box-shadow: 0 4px 12px var(--accent-glow);
        }
        .copy-btn.copied {
            background: #22c55e;
            color: #fff;
            border-color: #22c55e;
        }
        .copy-btn:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        /* ---------- SITEMAP GRID ---------- */
        .sitemap-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 18px;
            margin: 24px 0;
        }
        .sitemap-card {
            background: var(--bg-card);
            backdrop-filter: blur(12px) saturate(1.3);
            -webkit-backdrop-filter: blur(12px) saturate(1.3);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 24px 18px;
            text-align: center;
            transition: var(--transition);
            display: block;
            color: inherit;
            text-decoration: none;
            box-shadow: var(--shadow);
        }
        .sitemap-card:hover {
            border-color: var(--accent);
            transform: translateY(-6px);
            box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-border);
            text-decoration: none;
            background: var(--bg-card-hover);
        }
        .sitemap-card i {
            font-size: 2rem;
            color: var(--accent);
            margin-bottom: 10px;
            display: block;
        }
        .sitemap-card h4 {
            font-family: var(--font-display);
            font-size: var(--fs-h5);
            font-weight: var(--fw-semibold);
            margin-bottom: 4px;
            color: var(--text-primary);
        }
        .sitemap-card p {
            font-size: var(--fs-xs);
            color: var(--text-muted);
            margin-bottom: 0;
        }

        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 14px;
            margin: 20px 0;
        }
        .project-card {
            background: var(--bg-card);
            backdrop-filter: blur(12px) saturate(1.3);
            -webkit-backdrop-filter: blur(12px) saturate(1.3);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 20px 14px;
            text-align: center;
            transition: var(--transition);
            display: block;
            color: inherit;
            text-decoration: none;
            box-shadow: var(--shadow);
        }
        .project-card:hover {
            border-color: var(--accent);
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-border);
            text-decoration: none;
            background: var(--bg-card-hover);
        }
        .project-card .p-icon {
            font-size: 1.6rem;
            display: block;
            margin-bottom: 6px;
        }
        .project-card .p-name {
            font-family: var(--font-display);
            font-weight: var(--fw-semibold);
            font-size: var(--fs-small);
            color: var(--text-primary);
        }
        .project-card .p-desc {
            font-size: var(--fs-xs);
            color: var(--text-muted);
        }

        .changelog {
            background: var(--bg-primary);
            border-left: 4px solid var(--accent);
            padding: 24px 28px;
            border-radius: var(--radius-sm);
            margin-top: 28px;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }
        .changelog h3 {
            margin-top: 0;
        }
        .changelog ul {
            padding-left: 20px;
        }
        .changelog ul li {
            font-size: var(--fs-small);
            margin-bottom: 4px;
        }

        /* ---------- COOKIE TABLE ---------- */
        .cookie-table-wrap {
            overflow-x: auto;
            margin: 18px 0;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            background: var(--bg-surface);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        .cookie-table {
            width: 100%;
            border-collapse: collapse;
            font-size: var(--fs-small);
            min-width: 460px;
        }
        .cookie-table th,
        .cookie-table td {
            padding: 14px 18px;
            text-align: left;
            border-bottom: 1px solid var(--border-light);
            font-family: var(--font-sans);
        }
        .cookie-table th {
            background: var(--bg-primary);
            font-weight: var(--fw-semibold);
            color: var(--text-primary);
            font-size: var(--fs-xs);
            text-transform: uppercase;
            letter-spacing: var(--ls-wider);
        }
        .cookie-table tr:last-child td {
            border-bottom: none;
        }
        .cookie-table td {
            color: var(--text-secondary);
        }
        .cookie-table .badge-cookie {
            display: inline-block;
            background: var(--accent-soft);
            color: var(--accent);
            font-size: var(--fs-xs);
            font-weight: var(--fw-semibold);
            padding: 3px 12px;
            border-radius: 20px;
        }

        /* ---------- BACK TO TOP ---------- */
        .back-to-top {
            position: fixed;
            bottom: 32px;
            right: 32px;
            width: 50px;
            height: 50px;
            background: var(--bg-surface);
            backdrop-filter: blur(16px) saturate(1.4);
            -webkit-backdrop-filter: blur(16px) saturate(1.4);
            border: 1px solid var(--border);
            border-radius: 50%;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 998;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            color: var(--text-primary);
        }
        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }
        .back-to-top:hover {
            transform: translateY(-4px) scale(1.04);
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
            box-shadow: var(--shadow-lg), 0 4px 24px var(--accent-glow);
        }
        .back-to-top:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        /* ---------- FOOTER ---------- */
        .footer {
            background: var(--bg-surface);
            backdrop-filter: blur(16px) saturate(1.4);
            -webkit-backdrop-filter: blur(16px) saturate(1.4);
            border-top: 1px solid var(--border);
            padding: 48px 0 32px;
            margin-top: 60px;
        }
        .footer-inner {
            max-width: 1060px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 24px;
            text-align: center;
        }
        .footer-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-family: var(--font-display);
            font-weight: var(--fw-bold);
            font-size: 1.1rem;
            color: var(--text-primary);
        }
        .footer-logo img {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--border);
        }

        .footer-ecosystem {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px 20px;
        }
        .footer-ecosystem a {
            font-size: var(--fs-xs);
            color: var(--text-muted);
            text-decoration: none;
            font-weight: var(--fw-medium);
            transition: var(--transition);
            padding: 4px 0;
            border-bottom: 2px solid transparent;
        }
        .footer-ecosystem a:hover {
            color: var(--accent);
            border-bottom-color: var(--accent);
            text-decoration: none;
        }

        .footer-nav {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            justify-content: center;
        }
        .footer-nav a {
            color: var(--text-muted);
            font-size: var(--fs-small);
            text-decoration: none;
            font-weight: var(--fw-medium);
            transition: var(--transition);
            padding: 2px 0;
            border-bottom: 2px solid transparent;
        }
        .footer-nav a:hover {
            color: var(--accent);
            border-bottom-color: var(--accent);
            text-decoration: none;
        }

        .footer-bottom {
            font-size: var(--fs-small);
            color: var(--text-muted);
            border-top: 1px solid var(--border-light);
            padding-top: 24px;
            margin-top: 8px;
            width: 100%;
        }
        .footer-disclaimer {
            font-size: var(--fs-xs);
            color: var(--text-muted);
            opacity: 0.7;
            margin-top: 6px;
        }
        .written-by-human {
            display: block;
            margin: 21.6px auto 0;
            border: 0;
            width: 144px;
            height: auto;
        }

        /* ---------- RESPONSIVE ---------- */
        @media (max-width: 820px) {
            .header-nav {
                display: none;
            }
            .hamburger {
                display: flex;
            }
            .header-inner {
                min-height: 60px;
                padding: 8px 0;
            }
            .hero {
                padding: 100px 0 28px;
            }
            .card {
                padding: 24px 20px;
            }
            .card-header {
                flex-direction: column;
                text-align: center;
                gap: 12px;
            }
            .card-header h2 {
                font-size: var(--fs-h2);
            }
            .toc-list {
                gap: 2px 8px;
            }
            .toc-list a {
                font-size: var(--fs-tiny);
                padding: 2px 6px;
            }
            .copy-btn {
                top: 4px;
                right: 4px;
                width: 26px;
                height: 26px;
                font-size: 0.7rem;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 16px;
            }
            .header {
                padding: 0 16px;
            }
            .sitemap-grid {
                grid-template-columns: 1fr 1fr;
            }
            .project-grid {
                grid-template-columns: 1fr 1fr;
            }
            .cookie-table {
                font-size: var(--fs-xs);
                min-width: 360px;
            }
            .cookie-table th,
            .cookie-table td {
                padding: 10px 12px;
            }
            .footer-nav {
                gap: 10px;
            }
            .footer-ecosystem {
                gap: 8px 14px;
            }
            .tablist {
                flex-direction: column;
                gap: 4px;
                border-radius: var(--radius-sm);
            }
            .tab-btn {
                justify-content: center;
                padding: 10px 12px;
                font-size: var(--fs-xs);
            }
            .version-badge {
                font-size: var(--fs-xs);
                padding: 6px 16px;
                flex-wrap: wrap;
                justify-content: center;
                gap: 8px;
            }
            .card-icon {
                width: 48px;
                height: 48px;
                min-width: 48px;
                font-size: 1.2rem;
            }
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 44px;
                height: 44px;
                font-size: 0.95rem;
            }
            .changelog {
                padding: 18px 20px;
            }
        }

        @media (max-width: 480px) {
            .sitemap-grid {
                grid-template-columns: 1fr;
            }
            .project-grid {
                grid-template-columns: 1fr;
            }
            .hero h1 {
                font-size: var(--fs-h1);
            }
            .hero-subtitle {
                font-size: var(--fs-base);
            }
            .header-actions .icon-btn {
                width: 38px;
                height: 38px;
                min-width: 38px;
                min-height: 38px;
                font-size: 0.85rem;
            }
            .card {
                padding: 18px 14px;
                border-radius: 16px;
            }
            .card-header h2 {
                font-size: var(--fs-h2);
            }
            .cookie-table {
                font-size: var(--fs-xs);
                min-width: 280px;
            }
            .cookie-table th,
            .cookie-table td {
                padding: 8px 10px;
            }
            .back-to-top {
                bottom: 16px;
                right: 16px;
                width: 40px;
                height: 40px;
                font-size: 0.85rem;
            }
            .tab-btn {
                font-size: var(--fs-xs);
                padding: 8px 10px;
            }
            .mobile-menu {
                top: 60px;
                padding: 12px 16px 18px;
            }
            .mobile-menu a {
                font-size: var(--fs-base);
                padding: 10px 14px;
            }
            .footer {
                padding: 32px 0 24px;
                margin-top: 40px;
            }
            .footer-nav {
                gap: 6px 12px;
            }
            .footer-nav a {
                font-size: var(--fs-xs);
            }
            .copy-btn {
                top: 2px;
                right: 2px;
                width: 24px;
                height: 24px;
                font-size: 0.65rem;
            }
        }

        @media (max-width: 375px) {
            .header-inner {
                gap: 8px;
            }
            .logo span {
                font-size: 0.95rem;
            }
            .logo img {
                width: 34px;
                height: 34px;
            }
            .hero {
                padding: 88px 0 20px;
            }
            .hero h1 {
                font-size: var(--fs-h1);
            }
            .version-badge {
                font-size: var(--fs-tiny);
                padding: 4px 12px;
            }
            .status-badge {
                font-size: var(--fs-tiny);
                padding: 2px 10px;
            }
        }

        @media (max-width: 320px) {
            .container {
                padding: 0 10px;
            }
            .header {
                padding: 0 10px;
            }
            .hero h1 {
                font-size: var(--fs-h1);
            }
            .card {
                padding: 14px 10px;
            }
        }

        @media (min-width: 1440px) {
            .container {
                max-width: 1160px;
            }
            .card {
                padding: 44px 52px;
                border-radius: 28px;
            }
            .hero h1 {
                font-size: var(--fs-h1);
            }
        }

        @media (min-width: 1920px) {
            .container {
                max-width: 1280px;
            }
            .hero h1 {
                font-size: var(--fs-h1);
            }
            .card {
                padding: 52px 60px;
                border-radius: 32px;
            }
        }

        /* ---------- PRINT ---------- */
        @media print {
            .progress-bar,
            .back-to-top,
            .icon-btn,
            .skip-link,
            .header-actions,
            .tablist,
            .hamburger,
            .mobile-menu,
            .toc-wrapper,
            .copy-btn {
                display: none !important;
            }
            .card {
                break-inside: avoid;
                border: 1px solid #ccc !important;
                box-shadow: none !important;
                background: #fff !important;
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
                transform: none !important;
            }
            body {
                background: #fff !important;
                color: #000 !important;
            }
            .card-icon {
                background: #ccc !important;
                color: #000 !important;
            }
            .header {
                background: #fff !important;
                border-bottom: 1px solid #ddd !important;
                position: static !important;
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
                box-shadow: none !important;
            }
            [data-theme="dark"] .header {
                background: #fff !important;
            }
            .hero h1 {
                -webkit-text-fill-color: #000 !important;
                background: none !important;
                color: #000 !important;
            }
            .footer {
                border-top: 1px solid #ddd !important;
                background: #f9f9f9 !important;
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
            }
            .tabpanel {
                display: block !important;
            }
            .tabpanel[aria-hidden="false"] {
                display: block !important;
            }
            .tabpanel[aria-hidden="true"] {
                display: block !important;
            }
            .sitemap-card,
            .project-card {
                border: 1px solid #ddd !important;
                background: #fff !important;
                box-shadow: none !important;
            }
            .changelog {
                border-left-color: #333 !important;
                background: #f5f5f5 !important;
            }
            .cookie-table-wrap {
                border: 1px solid #ddd !important;
                background: #fff !important;
            }
            .cookie-table th {
                background: #f0f0f0 !important;
            }
            .section-anchor {
                scroll-margin-top: 0 !important;
            }
            h2,
            h3 {
                break-after: avoid;
            }
            p,
            li {
                break-inside: avoid;
            }
        }

        /* ---------- FOCUS VISIBLE ---------- */
        :focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 3px;
        }

        /* ---------- REDUCED MOTION ---------- */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
            .tabpanel {
                animation: none !important;
            }
            .mobile-menu {
                animation: none !important;
            }
            .dot {
                animation: none !important;
            }
            .sitemap-card:hover,
            .project-card:hover,
            .card:hover {
                transform: none !important;
            }
        }