
        * { font-family: 'Inter', sans-serif; }
        
        :root {
            --primary: #6366f1;
            --primary-glow: rgba(99, 102, 241, 0.4);
            --accent: #22d3ee;
            --accent-glow: rgba(34, 211, 238, 0.4);
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --glass-bg: rgba(15, 23, 42, 0.6);
            --glass-border: rgba(255, 255, 255, 0.08);
        }

        body {
            background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Animated background orbs */
        .bg-orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.5;
            animation: float 20s ease-in-out infinite;
            pointer-events: none;
            z-index: 0;
        }
        .bg-orb-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; left: -200px; }
        .bg-orb-2 { width: 500px; height: 500px; background: var(--accent); bottom: -150px; right: -150px; animation-delay: -10s; }
        .bg-orb-3 { width: 400px; height: 400px; background: #8b5cf6; top: 50%; left: 50%; animation-delay: -5s; }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(50px, -50px) scale(1.1); }
            50% { transform: translate(-30px, 30px) scale(0.95); }
            75% { transform: translate(-50px, -30px) scale(1.05); }
        }

        /* Glassmorphism card */
        .glass {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .glass-hover {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .glass-hover:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                        0 0 60px var(--primary-glow),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
            border-color: rgba(99, 102, 241, 0.3);
        }

        /* Glow effects */
        .glow-primary { box-shadow: 0 0 40px var(--primary-glow); }
        .glow-accent { box-shadow: 0 0 40px var(--accent-glow); }
        .text-glow { text-shadow: 0 0 30px var(--primary-glow); }

        /* Animated gradient text */
        .gradient-text {
            background: linear-gradient(135deg, #6366f1, #22d3ee, #8b5cf6, #6366f1);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradient-shift 8s ease infinite;
        }

        @keyframes gradient-shift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        /* Sidebar */
        .sidebar {
            width: 280px;
            transition: width 0.3s ease;
            overflow: hidden;
        }
        .sidebar.collapsed {
            width: 72px;
        }
        .sidebar .sidebar-label {
            opacity: 1;
            transition: opacity 0.2s ease 0.1s;
            white-space: nowrap;
            overflow: hidden;
        }
        .sidebar.collapsed .sidebar-label {
            opacity: 0;
            width: 0;
            transition: opacity 0.15s ease, width 0s ease 0.15s;
        }
        .sidebar.collapsed .sidebar-item {
            justify-content: center;
            padding-left: 0;
            padding-right: 0;
        }
        .sidebar.collapsed #collapse-icon {
            transform: rotate(180deg);
        }
        .sidebar-item {
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }
        .sidebar-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 3px;
            background: linear-gradient(180deg, var(--primary), var(--accent));
            transform: scaleY(0);
            transition: transform 0.2s ease;
        }
        .sidebar-item:hover::before {
            transform: scaleY(1);
        }
        .sidebar-item.active::before {
            transform: scaleY(1);
            width: 4px;
        }
        .sidebar-item:hover {
            background: rgba(99, 102, 241, 0.08);
        }
        .sidebar-item.active {
            background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
            color: white;
            font-weight: 500;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        .sidebar-item.active svg {
            color: #818cf8 !important;
            filter: drop-shadow(0 0 4px rgba(129, 140, 248, 0.4));
        }
        .sidebar-item.active .sidebar-label {
            color: white;
        }

        /* Metric cards */
        .metric-value {
            font-size: 2.5rem;
            font-weight: 800;
            line-height: 1;
        }
        .metric-card {
            position: relative;
            overflow: hidden;
        }
        .metric-card::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
        .metric-card:hover::after {
            opacity: 1;
        }

        /* Progress rings */
        .progress-ring {
            transform: rotate(-90deg);
        }
        .progress-ring-circle {
            transition: stroke-dashoffset 1s ease-out;
        }

        /* Skill bars */
        .skill-bar {
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            overflow: hidden;
        }
        .skill-bar-fill {
            height: 100%;
            border-radius: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }
        .skill-bar-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: shimmer 2s infinite;
        }
        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        /* Heatmap cell */
        .heatmap-cell {
            transition: all 0.15s ease;
            cursor: pointer;
        }
        .heatmap-cell:hover {
            transform: scale(1.3);
            z-index: 10;
            box-shadow: 0 0 20px currentColor;
        }

        /* Table styling */
        .data-table {
            border-collapse: separate;
            border-spacing: 0 8px;
        }
        .data-table tbody tr {
            transition: all 0.2s ease;
        }
        .data-table tbody tr:hover {
            transform: scale(1.01);
        }
        .data-table tbody tr td {
            background: rgba(255, 255, 255, 0.02);
            border-top: 1px solid var(--glass-border);
            border-bottom: 1px solid var(--glass-border);
        }
        .data-table tbody tr td:first-child {
            border-left: 1px solid var(--glass-border);
            border-radius: 12px 0 0 12px;
        }
        .data-table tbody tr td:last-child {
            border-right: 1px solid var(--glass-border);
            border-radius: 0 12px 12px 0;
        }

        /* Tabs */
        .tab-btn {
            position: relative;
            transition: all 0.3s ease;
        }
        .tab-btn.active {
            color: white;
        }
        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 2px;
        }

        /* Animated counter */
        .counter {
            display: inline-block;
        }

        /* Widget library */
        .widget-card {
            min-height: 180px;
        }
        .tag-chip {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 600;
            background: rgba(99, 102, 241, 0.2);
            color: #c7d2fe;
        }
        .tag-chip-muted {
            background: rgba(255, 255, 255, 0.08);
            color: #cbd5f5;
            font-weight: 500;
        }
        .glass-inner {
            background: rgba(15, 23, 42, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        /* Pipeline funnel */
        .funnel-stage {
            clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
            transition: all 0.3s ease;
        }
        .funnel-stage:hover {
            transform: scale(1.02);
            filter: brightness(1.2);
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 4px; }
        ::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.5); border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.8); }

        /* View transitions */
        .view-panel {
            animation: fadeSlideIn 0.4s ease-out;
        }
        @keyframes fadeSlideIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Tooltip */
        .tooltip {
            position: relative;
        }
        .tooltip::after {
            content: attr(data-tip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-8px);
            padding: 8px 12px;
            background: rgba(15, 23, 42, 0.98);
            border: 1px solid var(--glass-border);
            border-radius: 8px;
            font-size: 12px;
            white-space: normal;
            max-width: 280px;
            min-width: 120px;
            width: max-content;
            text-align: left;
            line-height: 1.4;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            z-index: 1000;
            pointer-events: none;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        }
        .tooltip:hover::after {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(-4px);
        }
        /* Tooltip positioning variants for edge cases */
        .tooltip-left::after {
            left: 0;
            transform: translateX(0) translateY(-8px);
        }
        .tooltip-left:hover::after {
            transform: translateX(0) translateY(-4px);
        }
        .tooltip-right::after {
            left: auto;
            right: 0;
            transform: translateX(0) translateY(-8px);
        }
        .tooltip-right:hover::after {
            transform: translateX(0) translateY(-4px);
        }
        /* Disable CSS tooltip for heatmap cells - using SmartTooltip instead */
        .heatmap-cell.tooltip::after {
            display: none !important;
        }

        /* Badge pulse */
        .badge-pulse {
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
            50% { box-shadow: 0 0 0 10px transparent; }
        }

        /* Chart container */
        .chart-container {
            position: relative;
        }
        .chart-container canvas {
            max-height: 100%;
        }

        /* Search input */
        .search-input {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            transition: all 0.3s ease;
        }
        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-glow);
        }
        /* Global readability for small gray text (especially numbers) */
        .text-slate-500 { color: #cbd5f5 !important; }
        .text-slate-400 { color: #e2e8f0 !important; }
        .text-xs { font-size: 0.8rem; }
        .text-\[10px\] { font-size: 0.75rem; }
        .search-result-item {
            padding: 10px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        .search-result-item:hover {
            background: rgba(255, 255, 255, 0.08);
        }

        /* Select + dropdown theming */
        select {
            background-color: rgba(15, 23, 42, 0.9);
            color: #e2e8f0;
            border: 1px solid var(--glass-border);
        }
        select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-glow);
        }
        option {
            background-color: #0f172a;
            color: #e2e8f0;
        }

        /* Modal base */
        .modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 60;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(2, 6, 23, 0.7);
            backdrop-filter: blur(6px);
        }
        .modal-overlay.active {
            display: flex;
        }
        .modal-card {
            max-width: 1200px;
            width: 94%;
            max-height: 85vh;
            overflow: hidden;
        }
        .modal-body {
            max-height: 70vh;
            overflow: auto;
        }

        /* Avatar ring */
        .avatar-ring {
            padding: 3px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-radius: 50%;
        }

        /* Score indicator */
        .score-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            display: inline-block;
        }
        .score-0 { background: #475569; }
        .score-1 { background: #ef4444; }
        .score-2 { background: #f97316; }
        .score-3 { background: #eab308; }
        .score-4 { background: #22c55e; }
        .score-5 { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }

        /* ============ WIDGET LIBRARY STYLES ============ */

        /* Category tabs */
        .category-tab {
            background: rgba(255, 255, 255, 0.05);
            color: #94a3b8;
            transition: all 0.2s ease;
        }
        .category-tab:hover {
            background: rgba(99, 102, 241, 0.2);
            color: #e2e8f0;
        }
        .category-tab.active {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            box-shadow: 0 0 20px var(--primary-glow);
        }

        /* Widget visualization container */
        .widget-viz-container {
            min-height: 140px;
        }
        .widget-viz-container canvas {
            max-width: 100%;
        }

        /* Gauge SVG styles */
        .gauge-arc {
            transition: stroke-dashoffset 1s ease-out;
        }
        .gauge-label {
            font-family: 'Inter', sans-serif;
        }

        /* Timeline styles */
        .timeline-dot {
            position: relative;
            z-index: 1;
            box-shadow: 0 0 10px var(--accent-glow);
        }
        .timeline-dot::after {
            content: '';
            position: absolute;
            inset: -3px;
            border-radius: 50%;
            background: transparent;
            border: 1px solid rgba(34, 211, 238, 0.3);
        }

        /* Funnel stage styles */
        .funnel-stage {
            border-radius: 4px;
            transition: all 0.2s ease;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }
        .funnel-stage:hover {
            transform: scale(1.02);
            filter: brightness(1.2);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        /* Region/map cell styles */
        .region-cell {
            transition: all 0.2s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .region-cell:hover {
            border-color: var(--accent);
            box-shadow: 0 0 15px var(--accent-glow);
        }

        /* Alert card styles */
        .alert-card {
            animation: alertPulse 2s ease-in-out infinite;
        }
        @keyframes alertPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.85; }
        }

        /* Heatmap cell enhancements */
        .heatmap-cell {
            transition: all 0.15s ease;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .heatmap-cell:hover {
            transform: scale(1.15);
            z-index: 10;
            box-shadow: 0 0 15px currentColor;
            border-color: white;
        }

        /* KPI value styling */
        .kpi-value {
            font-size: 2rem;
            font-weight: 800;
            line-height: 1;
        }
        .kpi-delta {
            font-size: 0.75rem;
            padding: 2px 8px;
            border-radius: 999px;
        }
        .kpi-delta-positive {
            background: rgba(16, 185, 129, 0.15);
            color: #34d399;
        }
        .kpi-delta-negative {
            background: rgba(239, 68, 68, 0.15);
            color: #f87171;
        }

        /* List item styles */
        .list-item {
            transition: all 0.15s ease;
        }
        .list-item:hover {
            background: rgba(255, 255, 255, 0.05);
            transform: translateX(4px);
        }

        /* Widget card hover effect */
        .widget-card {
            transition: all 0.2s ease;
        }
        .widget-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                        0 0 40px var(--primary-glow);
        }

        /* Plotly container fixes */
        .js-plotly-plot .plotly {
            background: transparent !important;
        }
        .js-plotly-plot .main-svg {
            background: transparent !important;
        }

        /* Drill modal show state */
        #drill-modal.show {
            display: flex !important;
        }

        /* Responsive grid adjustments */
        @media (max-width: 640px) {
            .widget-card {
                min-height: auto;
            }
            .widget-viz-container {
                min-height: 120px;
            }
        }

        /* Expandable text for profile cards */
        .expandable-text-wrapper {
            position: relative;
        }
        .expandable-text {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }
        .expandable-text.is-truncated {
            cursor: pointer;
        }
        .expandable-text.is-truncated:hover {
            color: #e2e8f0;
        }
        .expandable-text:not(.line-clamp-2) {
            max-height: none;
        }

        /* Expand indicator */
        .expand-indicator {
            display: none;
            position: absolute;
            bottom: 0;
            right: 0;
            padding: 2px 8px;
            font-size: 10px;
            font-weight: 500;
            color: var(--accent);
            background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.95) 20%);
            border-radius: 4px;
            pointer-events: none;
            opacity: 0;
            transform: translateY(2px);
            transition: all 0.2s ease;
        }
        .expandable-text.is-truncated.line-clamp-2 + .expand-indicator,
        .expandable-text-wrapper:has(.is-truncated.line-clamp-2) .expand-indicator {
            display: block;
        }
        .expandable-text.is-truncated.line-clamp-2:hover + .expand-indicator,
        .expandable-text-wrapper:hover .expand-indicator {
            opacity: 1;
            transform: translateY(0);
        }

        /* Glow animation on expand */
        .expandable-text.expanding {
            animation: expandGlow 0.5s ease-out;
        }
        @keyframes expandGlow {
            0% {
                box-shadow: 0 0 0 0 var(--accent-glow);
                background: rgba(34, 211, 238, 0.1);
            }
            50% {
                box-shadow: 0 0 20px 4px var(--accent-glow);
                background: rgba(34, 211, 238, 0.15);
            }
            100% {
                box-shadow: 0 0 0 0 transparent;
                background: transparent;
            }
        }

        /* Collapse indicator */
        .expandable-text:not(.line-clamp-2)::after {
            content: '';
            display: block;
            margin-top: 6px;
            height: 2px;
            width: 40px;
            background: linear-gradient(90deg, var(--accent), transparent);
            border-radius: 2px;
            opacity: 0.5;
        }
        .expandable-text.is-truncated:not(.line-clamp-2):hover::after {
            opacity: 1;
            width: 60px;
            transition: all 0.3s ease;
        }

        /* Q&A Survey Log Sections */
        .qa-section summary {
            list-style: none;
        }
        .qa-section summary::-webkit-details-marker {
            display: none;
        }
        .qa-section .qa-chevron {
            transition: transform 0.2s ease;
        }
        .qa-section[open] .qa-chevron {
            transform: rotate(180deg);
        }
        .qa-section summary:hover {
            background: rgba(255, 255, 255, 0.03);
        }
        .qa-question-row:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        /* Chart Info Button */
        .chart-info-btn {
            opacity: 0.6;
            transition: all 0.2s ease;
            position: relative;
            z-index: 10;
            cursor: pointer;
        }
        .chart-info-btn:hover {
            opacity: 1;
        }
        .chart-info-btn:hover svg {
            color: var(--primary) !important;
            transform: scale(1.1);
        }
        .chart-info-btn svg {
            transition: all 0.2s ease;
            pointer-events: none;
        }

        /* Chart Info Modal */
        #chart-info-modal .modal-card {
            animation: chartInfoSlideIn 0.3s ease-out;
        }
        @keyframes chartInfoSlideIn {
            from {
                opacity: 0;
                transform: translateY(-20px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Details/Summary chevron animation */
        details summary {
            list-style: none;
        }
        details summary::-webkit-details-marker {
            display: none;
        }
        .details-chevron {
            transition: transform 0.2s ease;
        }
        details[open] .details-chevron {
            transform: rotate(90deg);
        }

        /* Supervisor Profile */
        .sup-voice-tab.active {
            background: rgba(99, 102, 241, 0.2);
            color: #a5b4fc;
            border-bottom: 2px solid #6366f1;
        }
        .sup-voice-tab {
            border-bottom: 2px solid transparent;
        }
        .sup-voice-tab:hover:not(.active) {
            background: rgba(255, 255, 255, 0.05);
        }
        #sup-selector {
            appearance: none;
            -webkit-appearance: none;
            background-repeat: no-repeat;
            background-position: right 4px center;
            padding-right: 24px;
        }
        #sup-selector option {
            background: #1e293b;
            color: #e2e8f0;
        }
        #sup-score-heatmap table tbody tr:hover td:first-child {
            color: #a5b4fc;
        }
        #sup-coaching-cards > div:hover {
            background: rgba(255, 255, 255, 0.08) !important;
        }

        /* Talent Finder card improvements */
        #competency-cards-container .glass {
            transition: all 0.2s ease;
        }
        #competency-cards-container .glass:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
        }

        /* Main content transition for collapsible sidebar */
        #app-main {
            transition: margin-left 0.3s ease;
        }
        .sidebar-collapsed-main {
            margin-left: 72px !important;
        }

        /* ============ READABILITY: FONT SIZE BOOST ============ */
        /* Base body font increase */
        body {
            font-size: 16px;
            line-height: 1.6;
        }

        /* Override Tailwind text-sm to be more readable */
        .text-sm {
            font-size: 0.9375rem !important;
            line-height: 1.5 !important;
        }

        /* Override text-xs to be more readable */
        .text-xs {
            font-size: 0.8125rem !important;
            line-height: 1.45 !important;
        }

        /* Override tiny text */
        .text-\[10px\] {
            font-size: 0.75rem !important;
        }
        .text-\[11px\] {
            font-size: 0.8125rem !important;
        }

        /* Page title */
        .gradient-text {
            font-size: 2rem;
        }

        /* Subtitle text */
        #view-subtitle {
            font-size: 1rem;
        }

        /* Table text */
        .data-table th {
            font-size: 0.875rem;
        }
        .data-table td {
            font-size: 0.875rem;
            padding-top: 0.75rem;
            padding-bottom: 0.75rem;
        }

        /* Card labels and descriptions */
        .metric-card p,
        .metric-card span {
            font-size: 0.875rem;
        }

        /* Search input */
        .search-input {
            font-size: 0.9375rem;
        }

        /* Button text */
        button, .btn, [role="button"] {
            font-size: 0.9375rem;
        }

        /* Tooltip text */
        .tooltip::after {
            font-size: 0.8125rem;
        }

        /* Tag chips */
        .tag-chip {
            font-size: 0.75rem;
        }

        /* Promotion readiness custom controls */
        .promo-number-input::-webkit-inner-spin-button,
        .promo-number-input::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .promo-number-input[type=number] {
            -moz-appearance: textfield;
        }
        .promo-number-input:hover {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(34, 211, 238, 0.3));
            border-color: rgba(99, 102, 241, 0.5);
        }
        .promo-checkbox:checked + div {
            box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
        }

        /* Promotion multiselect dropdowns */
        .promo-multiselect {
            position: relative;
        }
        .promo-ms-dropdown {
            max-height: 220px;
            overflow-y: auto;
        }
        .promo-ms-toggle:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-glow);
        }
        .promo-threshold-row td {
            padding-top: 4px;
            padding-bottom: 4px;
        }

        /* ============================================================
           AVAILABILITY GANTT CHART
           ============================================================ */
        .gantt-scroll-container {
            scrollbar-width: thin;
            scrollbar-color: rgba(99, 102, 241, 0.4) rgba(255, 255, 255, 0.05);
        }
        .gantt-scroll-container::-webkit-scrollbar {
            height: 8px;
            width: 8px;
        }
        .gantt-scroll-container::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
        }
        .gantt-scroll-container::-webkit-scrollbar-thumb {
            background: rgba(99, 102, 241, 0.4);
            border-radius: 4px;
        }

        .gantt-table {
            display: flex;
            flex-direction: column;
        }

        .gantt-header {
            display: flex;
            position: sticky;
            top: 0;
            z-index: 10;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .gantt-name-header {
            min-width: 300px;
            max-width: 300px;
            padding: 8px 16px;
            font-size: 11px;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            display: flex;
            align-items: flex-end;
            border-right: 1px solid rgba(255, 255, 255, 0.08);
        }

        .gantt-cells-header {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .gantt-year-row {
            display: flex;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .gantt-year-cell {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4px 0;
            font-size: 11px;
            font-weight: 700;
            color: #818cf8;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            border-right: 1px solid rgba(255, 255, 255, 0.08);
        }
        .gantt-year-cell:last-child {
            border-right: none;
        }

        .gantt-month-row {
            display: flex;
        }

        .gantt-month-cell {
            min-width: 46px;
            max-width: 46px;
            padding: 6px 2px;
            font-size: 9px;
            font-weight: 500;
            color: #64748b;
            text-align: center;
            border-right: 1px solid rgba(255, 255, 255, 0.03);
        }
        .gantt-month-cell.gantt-month-current {
            color: #22d3ee;
            font-weight: 700;
            background: rgba(34, 211, 238, 0.08);
        }

        .gantt-body {
            display: flex;
            flex-direction: column;
        }

        .gantt-row {
            display: flex;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            transition: background 0.15s ease;
        }
        .gantt-row:hover {
            background: rgba(99, 102, 241, 0.06);
        }

        .gantt-name-cell {
            min-width: 300px;
            max-width: 300px;
            padding: 6px 12px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 3px;
            border-right: 1px solid rgba(255, 255, 255, 0.08);
            position: sticky;
            left: 0;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(12px);
            z-index: 5;
        }
        .gantt-row:hover .gantt-name-cell {
            background: rgba(15, 23, 42, 0.98);
        }

        .gantt-employee-name {
            font-size: 12px;
            font-weight: 600;
            color: #e2e8f0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .gantt-employee-meta {
            font-size: 10px;
            color: #64748b;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Employee header row with name + status badge */
        .gantt-emp-header {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .gantt-emp-identity {
            flex: 1;
            min-width: 0;
        }
        .gantt-status-badge {
            flex-shrink: 0;
            font-size: 9px;
            font-weight: 700;
            padding: 1px 6px;
            border-radius: 9999px;
            border: 1px solid;
            white-space: nowrap;
            letter-spacing: 0.02em;
        }

        /* Project pills row */
        .gantt-emp-projects {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            align-items: center;
            padding-left: 20px;
        }
        .gantt-proj-pill {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 9999px;
            padding: 1px 6px 1px 5px;
            max-width: 140px;
            cursor: default;
            transition: all 0.15s ease;
        }
        .gantt-proj-pill:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.15);
        }
        .gantt-pill-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .gantt-pill-label {
            font-size: 9px;
            font-weight: 500;
            color: #cbd5e1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .gantt-pill-remove {
            flex-shrink: 0;
            width: 14px;
            height: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            color: #64748b;
            border-radius: 50%;
            background: transparent;
            border: none;
            cursor: pointer;
            transition: all 0.15s ease;
            line-height: 1;
        }
        .gantt-pill-remove:hover {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.15);
        }
        .gantt-no-projects {
            font-size: 9px;
            color: #475569;
            font-style: italic;
        }
        .gantt-add-proj-btn {
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 600;
            color: #64748b;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.04);
            border: 1px dashed rgba(255, 255, 255, 0.1);
            cursor: pointer;
            transition: all 0.15s ease;
            flex-shrink: 0;
        }
        .gantt-add-proj-btn:hover {
            color: #a5b4fc;
            border-color: rgba(165, 180, 252, 0.4);
            background: rgba(99, 102, 241, 0.1);
        }

        /* Project sub-row header with color bar */
        .gantt-proj-header {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
        }
        .gantt-proj-color-bar {
            width: 3px;
            height: 24px;
            border-radius: 2px;
            flex-shrink: 0;
        }
        .gantt-proj-info {
            flex: 1;
            min-width: 0;
        }
        .gantt-proj-loc {
            color: #475569;
        }
        .gantt-custom-badge {
            display: inline-block;
            font-size: 8px;
            font-weight: 600;
            color: #818cf8;
            background: rgba(99, 102, 241, 0.12);
            border: 1px solid rgba(99, 102, 241, 0.2);
            border-radius: 3px;
            padding: 0 3px;
            margin-left: 2px;
            vertical-align: middle;
        }
        .gantt-unassign-btn {
            flex-shrink: 0;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #475569;
            border-radius: 4px;
            background: transparent;
            border: none;
            cursor: pointer;
            transition: all 0.15s ease;
            opacity: 0;
        }
        .gantt-row:hover .gantt-unassign-btn {
            opacity: 1;
        }
        .gantt-unassign-btn:hover {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.12);
        }

        .gantt-cells {
            display: flex;
            flex: 1;
        }

        .gantt-cell {
            min-width: 46px;
            max-width: 46px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 8px;
            font-weight: 600;
            border-right: 1px solid rgba(255, 255, 255, 0.02);
            transition: all 0.15s ease;
            cursor: default;
            position: relative;
        }

        /* Gradient allocation cells — colors set via inline --alloc-color / --alloc-bg */
        .gantt-cell-bar::after {
            content: '';
            display: block;
            width: 70%;
            height: 14px;
            border-radius: 3px;
            background: linear-gradient(135deg, var(--alloc-color), var(--alloc-bg));
            box-shadow: 0 0 6px var(--alloc-bg);
        }

        .gantt-cell-partial-alloc::before {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 70%;
            height: 3px;
            border-radius: 2px;
            background: var(--alloc-color);
        }

        .gantt-cell-free::after {
            content: '';
            display: block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--alloc-color);
        }

        .gantt-cell-empty {
            background: transparent;
        }

        .gantt-col-current {
            box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.15);
        }

        .gantt-cell:hover {
            filter: brightness(1.3);
            z-index: 2;
        }

        .gantt-select {
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 8px center;
            background-repeat: no-repeat;
            background-size: 16px;
            padding-right: 28px;
        }
        .gantt-select option {
            background: #1e293b;
            color: #e2e8f0;
        }
        .gantt-select option:disabled {
            color: #475569;
        }

        /* Hierarchical row styles */
        .gantt-row-supervisor .gantt-name-cell {
            cursor: pointer;
        }
        .gantt-row-supervisor .gantt-employee-name {
            font-size: 13px;
            font-weight: 700;
            color: #a5b4fc;
        }
        .gantt-row-employee .gantt-name-cell {
            padding-left: 20px;
            cursor: pointer;
        }
        .gantt-row-project .gantt-name-cell {
            padding-left: 40px;
        }
        .gantt-row-project .gantt-employee-name {
            font-size: 11px;
            font-weight: 500;
            color: #94a3b8;
        }
        .gantt-row-project .gantt-employee-meta {
            font-size: 9px;
        }
        .gantt-toggle {
            display: inline-flex;
            width: 14px;
            height: 14px;
            align-items: center;
            justify-content: center;
            margin-right: 6px;
            font-size: 9px;
            color: #64748b;
            flex-shrink: 0;
            transition: transform 0.15s ease;
        }
        .gantt-toggle.expanded {
            transform: rotate(90deg);
        }
        .gantt-row-action {
            opacity: 0;
            transition: opacity 0.15s ease;
            cursor: pointer;
            color: #64748b;
            margin-left: 4px;
            flex-shrink: 0;
        }
        .gantt-row:hover .gantt-row-action {
            opacity: 1;
        }
        .gantt-row-action:hover {
            color: #a5b4fc;
        }

