
        /* Critical CSS — QLVT Pro V8 Premium · Above-the-fold */
        :root {
            --bg: #080d1a;
            --text: #f1f5f9;
            --primary: #0891b2;
            --primary-glow: rgba(34, 211, 238, 0.15);
            --border: rgba(148, 163, 184, 0.08);
            --text-muted: rgba(148, 163, 184, 0.55);
            --surface: rgba(20, 28, 46, 0.75);
            --surface-solid: #141c2e;
        }

        @font-face {
            font-family: 'Inter Fallback';
            src: local('Arial');
            size-adjust: 107%;
            ascent-override: 90%;
            descent-override: 22%;
            line-gap-override: 0%;
        }

        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Be Vietnam Pro', Inter, 'Inter Fallback', system-ui, -apple-system, sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            font-display: swap;
            text-rendering: optimizeLegibility;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .app {
            display: flex;
            min-height: 100vh;
        }

        .sidebar {
            width: var(--sidebar-width, 240px);
            min-width: var(--sidebar-collapsed-width, 72px);
            background: var(--sidebar-bg);
            border-right: 1px solid var(--sidebar-border-color);
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            z-index: var(--z-fixed, 100);
            box-shadow: var(--sidebar-shadow);
            transition: width 250ms cubic-bezier(0.4, 0, 0.2, 1);
            overflow: visible !important;
        }

        .sidebar-header {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
        }

        .sidebar-logo {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .sidebar-logo h1 {
            font-size: 1.2rem;
            font-weight: 750;
            background: linear-gradient(135deg, #67e8f9, #22d3ee, #a78bfa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* HOTFIX FOR SIDEBAR COLLAPSED STATE */
        .sidebar.collapsed {
            width: var(--sidebar-collapsed-width, 72px) !important;
        }
        
        .sidebar.collapsed .sidebar-logo > div,
        .sidebar.collapsed #sidebarUserInfo,
        .sidebar.collapsed .user-info-module,
        .sidebar.collapsed .nav-section-title span,
        .sidebar.collapsed .nav-item span:not(.icon) {
            display: none !important;
        }

        .sidebar.collapsed ~ .main {
            margin-left: var(--sidebar-collapsed-width, 72px) !important;
        }

        #menuToggle {
            position: absolute;
            top: 50%;
            right: -16px;
            transform: translateY(-50%);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--surface-solid, #141c2e);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 101;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            color: var(--text);
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 14px;
            padding: 0;
        }
        
        #menuToggle:hover {
            background: rgba(34, 211, 238, .1);
            color: #22d3ee;
            border-color: #22d3ee;
        }

        [data-theme="light"] #menuToggle {
            background: #ffffff;
            color: #334155;
            border-color: #cbd5e1;
        }

        [data-theme="light"] #menuToggle:hover {
            background: #f1f5f9;
            color: #0ea5e9;
            border-color: #0ea5e9;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 16px;
            margin: 1px 10px;
            min-height: 42px;
            border-radius: 11px;
            color: var(--nav-item-color);
            cursor: pointer;
            transition: all .2s ease;
            text-decoration: none;
            font-size: .855rem;
            font-weight: 460;
        }

        .nav-item:hover {
            background: rgba(34, 211, 238, .06);
            color: var(--text-primary, #f1f5f9);
        }

        .nav-item.active {
            background: var(--nav-item-active-bg);
            color: var(--nav-item-active-color);
            font-weight: 560;
        }

        .main {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--main-bg);
        }

        .content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .header,
        .content-header {
            padding: 16px 24px;
            border-bottom: 1px solid var(--header-border-color, var(--border));
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 64px;
            background: var(--header-bg);
            -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
            position: sticky;
            top: 0;
            z-index: 20;
        }

        .view-section {
            display: none;
            padding: 24px;
            min-height: calc(100vh - 80px);
            contain: layout style;
        }

        .view-section.active {
            display: block;
        }

        .view-loading-placeholder {
            min-height: calc(100vh - 180px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: var(--text-muted);
            contain: layout;
        }

        .view-loading-placeholder .spinner {
            width: 44px;
            height: 44px;
            border: 3px solid rgba(148, 163, 184, .08);
            border-top-color: #22d3ee;
            border-radius: 50%;
            animation: spin .7s linear infinite;
            margin: 20px auto;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .stat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        .stat-card {
            background: var(--stat-card-bg, var(--glass-bg));
            border: 1px solid var(--stat-card-border, var(--glass-border));
            border-radius: 16px;
            padding: 22px;
            contain: layout;
        }

        .card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            contain: layout;
        }

        .card-header {
            padding: 18px 24px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .auth-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .auth-card {
            width: 100%;
            max-width: 400px;
            padding: 40px;
        }

        @keyframes shimmer {
            0% {
                background-position: 300% 0;
            }

            100% {
                background-position: -100% 0;
            }
        }

        .skeleton {
            background: linear-gradient(90deg, var(--surface-solid) 0%, rgba(40, 52, 72, .6) 50%, var(--surface-solid) 100%);
            background-size: 300% 100%;
            animation: shimmer 2s ease-in-out infinite;
        }

        /* Light mode: handled by CSS variables in variables.css — no !important needed */
    