        .material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }
        /* Kinetic-style scoped to Call Quality only */
        #callQualityPage { background: #0e0e10; }
        #callQualityPage .cq-detail-panel { background: #0e0e10; }
        #callQualityPage .cq-kinetic-title { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
        #callQualityPage .cq-kinetic-score { font-family: 'Space Grotesk', sans-serif; }
        /* Call Library cards */
        #callQualityPage .cq-call-item { cursor: pointer; }
        #callQualityPage .cq-call-item .cq-call-card { transition: background 0.15s, border-color 0.15s; }
        #callQualityPage .cq-call-item:hover .cq-call-card { background: #202023; }
        #callQualityPage .cq-call-item.active .cq-call-card { border-left-color: var(--accent-primary) !important; background: #1f1f21; }
        * { margin: 0; padding: 0; box-sizing: border-box; }

        /* ============ DARK MODE (default) ============ */
        :root, [data-theme="dark"] {
            /* Core */
            --bg-primary: #141415;
            --bg-secondary: #1a1a1c;
            --bg-card: #242426;
            --bg-card-hover: #2e2e30;
            --bg-input: #1e1e20;
            /* Text */
            --text-primary: #eae8ec;
            --text-secondary: #b0b0b2;
            --text-muted: #7a7a7c;
            /* Brand — Mindaro palette */
            --accent-red: #f06060;
            --accent-green: #5cb85c;
            --accent-blue: #64B5F6;
            --accent-yellow: #dcf365;
            --accent-orange: #f0a030;
            --accent-primary: #dcf365;
            /* Utility */
            --muted-bg: #1e1e20;
            --border-color: #3a3a3c;
            --border-light: #2e2e30;
            --bg-main: #141415;
            /* Chart */
            --chart-1: #dcf365;
            --chart-2: #5cb85c;
            --chart-3: #64B5F6;
            --chart-4: #f0a030;
            --chart-5: #8d8d8f;
            /* Radius */
            --radius: 12px;
        }

        /* ============ LIGHT MODE ============ */
        [data-theme="light"] {
            --bg-primary: #fbfbfb;
            --bg-secondary: #f4f3f5;
            --bg-card: #eae8ec;
            --bg-card-hover: #e2e0e5;
            --bg-input: #fbfbfb;
            --text-primary: #2c2c2e;
            --text-secondary: #5a5a5c;
            --text-muted: #8d8d8f;
            --accent-red: #E03030;
            --accent-green: #2d8a1a;
            --accent-blue: #3b82f6;
            --accent-yellow: #dcf365;
            --accent-orange: #d97706;
            --accent-primary: #dcf365;
            --muted-bg: #f0eef2;
            --border-color: #cbcdd5;
            --border-light: #d8d6dc;
            --bg-main: #fbfbfb;
            --chart-1: #8a9e20;
            --chart-2: #2d8a1a;
            --chart-3: #3b82f6;
            --chart-4: #d97706;
            --chart-5: #8d8d8f;
        }
        body {
            font-family: 'Inter', -apple-system, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
        }
        /* =================== LOGIN PAGE =================== */
        .login-page {
            display: flex;
            min-height: 100vh;
        }
        .login-brand-side {
            flex: 1;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .login-brand-side img {
            max-width: 90%;
            max-height: 80vh;
            object-fit: contain;
        }
        .login-form-side {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 48px;
            background: var(--bg-primary);
        }
        .login-container {
            width: 100%;
            max-width: 420px;
        }
        .login-container h1 {
            font-size: 28px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 8px;
        }
        .login-container .login-subtitle {
            text-align: center;
            color: var(--text-secondary);
            margin-bottom: 32px;
            font-size: 14px;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 6px;
            color: var(--text-secondary);
        }
        .form-group input {
            width: 100%;
            padding: 12px 16px;
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            color: var(--text-primary);
            font-size: 14px;
            font-family: inherit;
            transition: border-color 0.2s;
        }
        .form-group input:focus {
            outline: none;
            border-color: var(--accent-primary);
        }
        .form-group input::placeholder { color: var(--text-muted); }
        .password-wrapper {
            position: relative;
        }
        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 16px;
        }
        .form-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            font-size: 13px;
        }
        .remember-me {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-secondary);
            cursor: pointer;
        }
        .remember-me input[type="checkbox"] {
            accent-color: var(--accent-primary);
        }
        .forgot-link {
            color: var(--accent-primary);
            text-decoration: none;
            font-size: 13px;
        }
        .forgot-link:hover { text-decoration: underline; }
        .login-btn {
            width: 100%;
            padding: 14px;
            background: var(--accent-primary);
            color: white;
            border: none;
            border-radius: var(--radius);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: background 0.2s;
        }
        .login-btn { color: #2c2c2e; }
        .login-btn:hover { background: #d0e855; }
        .login-footer {
            text-align: center;
            margin-top: 20px;
            font-size: 13px;
            color: var(--text-muted);
        }
        .login-footer a {
            color: var(--accent-blue);
            text-decoration: none;
        }
        .login-help {
            text-align: center;
            margin-top: 12px;
            font-size: 12px;
            color: var(--text-muted);
        }

        /* =================== DASHBOARD LAYOUT =================== */
        .dashboard-page { display: none; }
        .dashboard-page.active { display: block; }
        .login-page.hidden { display: none; }

        /* =================== LEFT SIDEBAR =================== */
        .ps-sidebar {
            position: fixed;
            left: 0;
            top: 0;
            width: 240px;
            height: 100vh;
            background: var(--bg-secondary);
            border-right: 1px solid var(--border-color);
            z-index: 200;
            overflow-y: auto;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
        }
        .ps-sidebar::-webkit-scrollbar { width: 4px; }
        .ps-sidebar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
        .ps-sidebar-logo {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 16px 16px 12px;
            border-bottom: 1px solid var(--border-color);
        }
        .ps-sidebar-logo span {
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 3px;
            color: var(--text-primary);
        }
        .ps-sidebar-toggle {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-muted);
            width: 24px;
            height: 24px;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: auto;
            flex-shrink: 0;
            transition: color 0.15s, border-color 0.15s, transform 0.2s;
        }
        .ps-sidebar-toggle:hover { color: var(--text-primary); border-color: var(--text-muted); }
        .ps-sidebar.collapsed { width: 64px; }
        .ps-sidebar.collapsed .ps-sidebar-logo span,
        .ps-sidebar.collapsed .ps-sidebar-section-label,
        .ps-sidebar.collapsed .ps-client-selector,
        .ps-sidebar.collapsed .ps-sidebar-user-info,
        .ps-sidebar.collapsed .ps-sidebar-logout { display: none !important; }
        .ps-sidebar.collapsed .ps-sidebar-logo { padding: 16px 8px; gap: 0; justify-content: center; }
        .ps-sidebar.collapsed .ps-sidebar-toggle { transform: rotate(180deg); margin-left: 4px; }
        .ps-sidebar.collapsed .ps-sidebar-item {
            overflow: hidden;
            white-space: nowrap;
            gap: 0;
            justify-content: center;
            padding: 10px 8px;
            font-size: 0;
        }
        .ps-sidebar.collapsed .ps-sidebar-item svg { font-size: initial; flex-shrink: 0; }
        .ps-sidebar.collapsed .ps-sidebar-section { padding: 8px 6px; }
        .ps-sidebar.collapsed .ps-sidebar-user { justify-content: center; padding: 12px 8px; }
        body.sidebar-collapsed .ps-content-wrapper { margin-left: 64px !important; }
        body.sidebar-collapsed #reportsPage,
        body.sidebar-collapsed #meetingsPage { padding-left: 64px !important; }
        /* Client Selector — Switch Workspace */
        .ps-client-selector {
            padding: 12px;
            border-bottom: 1px solid var(--border-color);
        }
        .ps-client-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 10px 12px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-primary);
            cursor: pointer;
            font-family: inherit;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.15s;
        }
        .ps-client-btn:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.15); }
        .ps-client-badge {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 800;
            color: #1A1A1A;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }
        .ps-client-btn-info { flex: 1; text-align: left; min-width: 0; }
        .ps-client-btn-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .ps-client-btn-sub { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
        .ps-client-dropdown {
            display: none;
            margin-top: 8px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 8px 0;
            box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        }
        .ps-client-dropdown.open { display: block; }
        .ps-client-dropdown-label {
            font-size: 9px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-muted);
            padding: 8px 14px 6px;
        }
        .ps-client-option {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 8px 14px;
            background: transparent;
            border: none;
            border-left: 3px solid transparent;
            color: var(--text-secondary);
            cursor: pointer;
            font-family: inherit;
            font-size: 12px;
            transition: all 0.15s;
            text-align: left;
        }
        .ps-client-option:hover { background: rgba(255,255,255,0.04); }
        .ps-client-option.active {
            background: rgba(255,255,255,0.06);
            border-left-color: var(--accent-green);
            color: var(--text-primary);
        }
        .ps-client-option.inactive { opacity: 0.45; }
        .ps-client-option-info { flex: 1; min-width: 0; }
        .ps-client-option-name { font-size: 12px; font-weight: 600; }
        .ps-client-option-status { font-size: 9px; margin-top: 1px; }
        .ps-client-option-status.active-status { color: var(--accent-green); }
        .ps-client-option-status.inactive-status { color: var(--text-muted); }
        .ps-client-add-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: calc(100% - 16px);
            margin: 6px 8px 4px;
            padding: 8px;
            background: transparent;
            border: 1px dashed var(--border-color);
            border-radius: 8px;
            color: var(--accent-primary, var(--accent-green));
            cursor: pointer;
            font-family: inherit;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.15s;
        }
        .ps-client-add-btn:hover { background: rgba(255,255,255,0.04); border-color: var(--accent-primary, var(--accent-green)); }
        /* Add Partnership Modal */
        .ps-partnership-modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }
        .ps-partnership-modal-overlay.open { display: flex; }
        .ps-partnership-modal {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 28px;
            width: 380px;
            box-shadow: 0 16px 48px rgba(0,0,0,0.5);
        }
        /* Sidebar Sections */
        .ps-sidebar-section {
            padding: 12px 0 4px;
        }
        .ps-sidebar-section-label {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-muted);
            padding: 0 16px;
            margin-bottom: 4px;
        }
        .ps-sidebar-item {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 8px 16px;
            background: transparent;
            border: none;
            border-left: 3px solid transparent;
            color: var(--text-secondary);
            cursor: pointer;
            font-family: inherit;
            font-size: 13px;
            font-weight: 400;
            transition: all 0.15s;
        }
        .ps-sidebar-item:hover {
            background: rgba(255,255,255,0.04);
            color: var(--text-primary);
        }
        .ps-sidebar-item.active {
            background: var(--bg-card);
            color: var(--text-primary);
            border-left-color: var(--accent-primary);
            font-weight: 500;
        }
        .ps-sidebar-item svg { flex-shrink: 0; opacity: 0.7; }
        .ps-sidebar-item.active svg { opacity: 1; }
        /* Sidebar User Section */
        .ps-sidebar-user {
            margin-top: auto;
            padding: 12px 16px;
            border-top: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .ps-sidebar-user-badge {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: var(--accent-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 700;
            color: #2c2c2e;
            flex-shrink: 0;
        }
        .ps-sidebar-user-info { flex: 1; min-width: 0; }
        .ps-sidebar-user-name {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .ps-sidebar-logout {
            font-size: 11px;
            color: var(--text-muted);
            background: none;
            border: none;
            cursor: pointer;
            font-family: inherit;
            padding: 0;
        }
        .ps-sidebar-logout:hover { color: var(--accent-primary); }

        /* =================== TOP BAR =================== */
        .ps-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 24px;
            background: var(--bg-primary);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
            height: 48px;
        }
        .ps-topbar-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .ps-topbar-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .ps-topbar-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 5px 12px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 11px;
            font-weight: 500;
            font-family: inherit;
            transition: all 0.15s;
        }
        .ps-topbar-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }

        /* =================== CONTENT WRAPPER =================== */
        .ps-content-wrapper {
            margin-left: 240px;
            min-height: 100vh;
            position: relative;
        }
        /* Ensure hidden pages overlay instead of stacking */
        .ps-overlay-page {
            position: absolute;
            top: 48px;
            left: 0;
            right: 0;
            z-index: 10;
            background: var(--bg-primary);
            min-height: calc(100vh - 48px);
        }

        /* Page fade transitions */
        .ps-page-transition {
            animation: psFadeIn 0.15s ease-out;
        }
        @keyframes psFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Old top nav — hidden */
        .top-nav { display: none !important; }

        /* Dashboard Content */
        .dashboard-content {
            padding: 20px 24px;
            max-width: 1400px;
            margin: 0 auto;
        }
        .dashboard-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--accent-blue);
            margin-bottom: 8px;
        }

        /* Pod Tabs */
        .pod-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }
        .pod-tab {
            padding: 6px 16px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            border: 1px solid var(--border-color);
            background: transparent;
            color: var(--text-secondary);
            font-family: inherit;
        }
        .pod-tab.active {
            background: var(--accent-primary);
            color: white;
            border-color: var(--accent-primary);
        }

        /* Quick Menu */
        .qm-item {
            display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
            background: none; border: none; color: var(--text-primary); font-size: 12px;
            border-radius: 8px; cursor: pointer; text-align: left; transition: background 0.15s;
        }
        .qm-item:hover { background: rgba(255,255,255,0.06); }
        .qm-item svg { flex-shrink: 0; opacity: 0.6; }
        .qm-pod {
            padding: 4px 12px; font-size: 11px; border-radius: 6px; border: 1px solid var(--border);
            background: none; color: var(--text-muted); cursor: pointer; transition: all 0.15s;
        }
        .qm-pod.active { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }
        .qm-client {
            display: block; width: 100%; padding: 6px 10px; font-size: 11px; border-radius: 6px;
            border: 1px solid var(--border); background: none; color: var(--text-secondary);
            cursor: pointer; text-align: left; transition: all 0.15s;
        }
        .qm-client:hover { background: rgba(255,255,255,0.04); }
        .qm-client.active { background: var(--accent-green); color: white; border-color: var(--accent-green); }
        .qm-client.active-combined { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }

        /* Team Tabs */
        .team-tabs {
            display: flex;
            gap: 6px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }
        .team-tab {
            padding: 6px 14px;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            border: 1px solid var(--border-color);
            background: transparent;
            color: var(--text-secondary);
            font-family: inherit;
        }
        .team-tab.active {
            background: var(--accent-green);
            color: white;
            border-color: var(--accent-green);
        }

        /* Filter Tabs */
        .filter-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 12px;
        }
        .filter-tabs {
            display: flex;
            gap: 8px;
        }
        .filter-tab {
            padding: 8px 20px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            border: 1px solid var(--border-color);
            background: var(--bg-card);
            color: var(--text-secondary);
            font-family: inherit;
            transition: all 0.2s ease;
        }
        .filter-tab:hover {
            background: rgba(220, 243, 101, 0.12);
            border-color: var(--accent-primary);
            color: var(--text-primary);
        }
        .filter-tab.active {
            background: var(--accent-primary);
            color: #2c2c2e;
            border-color: var(--accent-primary);
            box-shadow: 0 2px 8px rgba(220, 243, 101, 0.25);
        }
        .filter-tab.active:hover {
            background: #d0e855;
            border-color: #d0e855;
        }
        .filter-actions {
            display: flex;
            gap: 8px;
        }
        .action-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 10px 20px;
            border-radius: 24px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            border: 1.5px solid var(--border-color);
            background: var(--bg-card);
            color: var(--text-primary);
            font-family: inherit;
            transition: all 0.15s;
        }
        .action-btn:hover { background: var(--bg-card-hover); border-color: var(--text-muted); }

        /* Filters Panel */
        .filters-panel {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 16px 20px;
            margin-bottom: 20px;
            display: flex;
            gap: 20px;
            align-items: flex-end;
        }
        .filter-group {
            flex: 1;
        }
        .filter-group label {
            display: block;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
        }
        .filter-group select, .filter-group input[type="date"] {
            width: 100%;
            padding: 8px 12px;
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-primary);
            font-size: 13px;
            font-family: inherit;
        }

        /* =================== METRIC CARDS =================== */
        .section-label {
            font-size: 14px;
            font-weight: 700;
            color: var(--accent-blue);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
            margin-top: 8px;
        }
        .section-label.red { color: var(--accent-primary); }
        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 12px;
        }
        .metrics-grid-4 {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 12px;
        }
        .metrics-grid-5 {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 12px;
            margin-bottom: 12px;
        }
        .metrics-grid-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 12px;
        }
        .metric-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 16px 20px;
            position: relative;
        }
        .metric-card .metric-label {
            font-size: 10px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }
        .metric-card .metric-value {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-primary);
        }
        .metric-card .metric-icon {
            position: absolute;
            top: 16px;
            left: 16px;
            font-size: 14px;
            color: var(--text-muted);
        }
        .metric-card .metric-trend {
            position: absolute;
            top: 16px;
            right: 16px;
            font-size: 16px;
            color: var(--text-muted);
        }

        /* =================== TABLES =================== */
        .table-container {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            overflow-x: auto;
            max-height: 680px;
            overflow-y: auto;
            margin-bottom: 24px;
        }
        .table-container thead th {
            position: sticky;
            top: 0;
            background: var(--bg-card);
            z-index: 2;
        }
        .table-container table {
            min-width: 900px;
        }
        /* Leaderboard tables: fixed layout so columns size predictably + numeric cells
           centered under their headers. Name column stays left-aligned. (Fran 2026-05-28) */
        table.leaderboard-table {
            table-layout: fixed;
            width: 100%;
        }
        table.leaderboard-table th,
        table.leaderboard-table td {
            text-align: center;
        }
        table.leaderboard-table th:first-child,
        table.leaderboard-table td:first-child {
            text-align: left;
        }
        .table-title {
            font-size: 14px;
            font-weight: 600;
            padding: 16px 20px 12px;
            color: var(--text-primary);
        }
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }
        th {
            text-align: left;
            padding: 8px 8px;
            font-weight: 600;
            color: var(--text-muted);
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            border-bottom: 1px solid var(--border-color);
            white-space: nowrap;
        }
        td {
            padding: 8px 8px;
            border-bottom: 1px solid rgba(45,55,72,0.5);
            color: var(--text-secondary);
            white-space: nowrap;
            font-size: 11px;
        }
        tr:hover td {
            background: rgba(66,153,225,0.05);
        }
        .name-cell {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .status-dot.green { background: var(--accent-green); }
        .status-dot.yellow { background: var(--accent-yellow); }
        .status-dot.red { background: var(--accent-primary); }
        .status-dot.blue { background: var(--accent-blue); }
        .medal-icon { font-size: 14px; margin-right: 4px; }
        .name-cell { display: flex; align-items: center; white-space: nowrap; }
        tr.total-row td {
            font-weight: 700;
            color: var(--accent-blue);
            border-top: 2px solid var(--border-color);
        }
        td.highlight-red { color: var(--accent-primary); font-weight: 600; }
        td.highlight-green { color: var(--accent-green); font-weight: 600; }

        /* =================== CHARTS =================== */
        .chart-container {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 20px;
            margin-bottom: 24px;
        }
        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .chart-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
        }
        .chart-subtitle {
            font-size: 11px;
            color: var(--text-muted);
        }
        .charts-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 24px;
        }
        .chart-toggle {
            display: flex;
            gap: 4px;
        }
        .chart-toggle-btn {
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 11px;
            cursor: pointer;
            border: 1px solid var(--border-color);
            background: transparent;
            color: var(--text-muted);
            font-family: inherit;
        }
        .chart-toggle-btn.active {
            background: var(--accent-primary);
            color: white;
            border-color: var(--accent-primary);
        }
        .goal-row {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
            font-size: 13px;
        }
        .goal-row label {
            color: var(--text-muted);
            font-weight: 500;
        }
        .goal-row input {
            padding: 8px 12px;
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            color: var(--text-primary);
            font-size: 13px;
            font-family: inherit;
            width: 140px;
        }
        .goal-date-input {
            width: 100%;
            padding: 10px 12px;
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            color: var(--text-primary);
            font-size: 13px;
            font-family: inherit;
        }
        .goal-date-input:focus {
            outline: none;
            border-color: var(--accent-primary);
        }
        .goal-btn {
            padding: 6px 16px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-secondary);
            font-size: 12px;
            cursor: pointer;
            font-family: inherit;
        }

        /* =================== GOAL MODAL =================== */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 300;
            align-items: center;
            justify-content: center;
        }
        .modal-content {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 28px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.6);
            max-height: 90vh;
            overflow-y: auto;
        }

        /* =================== EOD TRACKER POPUP =================== */
        .eod-popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #1e1e2e;
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 24px;
            z-index: 200;
            min-width: 320px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.6);
        }
        .eod-popup.active { display: block; }
        .eod-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 199;
        }
        .eod-overlay.active { display: block; }
        .eod-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 4px;
        }
        .eod-total {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 16px;
        }
        .eod-total span { color: var(--accent-primary); font-weight: 600; }
        .eod-section-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            margin-bottom: 8px;
            margin-top: 12px;
        }
        .eod-row {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            font-size: 13px;
            color: var(--text-secondary);
        }
        .eod-row .eod-score span { color: var(--accent-primary); }
        .eod-row .eod-score.score-green span { color: var(--accent-green); }
        .eod-row .eod-score.score-yellow span { color: var(--accent-yellow); }
        .eod-row .eod-score.score-red span { color: var(--accent-primary); }

        /* =================== EOD SUBMIT FORM =================== */
        .eod-form-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6);
            z-index: 299;
        }
        .eod-form-overlay.active { display: block; }
        .eod-form-modal {
            display: none;
            position: fixed;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 32px;
            z-index: 300;
            width: 95%;
            max-width: 600px;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 25px 80px rgba(0,0,0,0.7);
        }
        .eod-form-modal.active { display: block; }
        .eod-form-modal h2 {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 4px;
            color: var(--text-primary);
        }
        .eod-form-modal .form-subtitle {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 20px;
        }
        .eod-form-modal .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 12px;
        }
        .eod-form-modal .form-row.full { grid-template-columns: 1fr; }
        .eod-form-modal .form-field {
            display: flex;
            flex-direction: column;
        }
        .eod-form-modal .form-field label {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-muted);
            margin-bottom: 4px;
        }
        .eod-form-modal .form-field label .required {
            color: var(--accent-primary);
        }
        .eod-hint {
            display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;cursor:pointer;position:relative;vertical-align:middle;margin-left:4px;
        }
        .eod-hint svg { opacity:0.5; }
        .eod-hint:hover svg { opacity:0.75; }
        .eod-hint .eod-hint-tip {
            display:none;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:var(--border-color);color:var(--text-secondary);font-size:11px;font-weight:400;padding:6px 10px;border-radius:6px;white-space:normal;width:200px;z-index:999;line-height:1.4;box-shadow:0 2px 8px rgba(0,0,0,0.5);pointer-events:none;text-transform:none;letter-spacing:normal;
        }
        .eod-hint:hover .eod-hint-tip { display:block; }
        .eod-form-modal .form-field input,
        .eod-form-modal .form-field select,
        .eod-form-modal .form-field textarea {
            padding: 10px 12px;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 14px;
            font-family: inherit;
            transition: border-color 0.2s;
        }
        .eod-form-modal .form-field input:focus,
        .eod-form-modal .form-field select:focus,
        .eod-form-modal .form-field textarea:focus {
            outline: none;
            border-color: var(--accent-primary);
        }
        .eod-form-modal .form-field textarea {
            resize: vertical;
            min-height: 60px;
        }
        .eod-form-modal .form-divider {
            height: 1px;
            background: var(--border-color);
            margin: 16px 0;
        }
        .eod-form-modal .form-section-label {
            font-size: 12px;
            font-weight: 700;
            color: var(--accent-primary);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 12px;
        }
        .eod-form-modal .form-actions {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }
        .eod-form-modal .btn-submit {
            flex: 1;
            padding: 12px;
            background: var(--accent-primary);
            color: #2c2c2e;
            border: none;
            border-radius: var(--radius);
            font-size: 14px;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: opacity 0.2s;
        }
        .eod-form-modal .btn-submit:hover { opacity: 0.9; }
        .eod-form-modal .btn-submit:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .eod-form-modal .btn-cancel {
            padding: 12px 24px;
            background: transparent;
            color: var(--text-muted);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            font-size: 14px;
            font-family: inherit;
            cursor: pointer;
        }
        .eod-form-modal .btn-cancel:hover { color: var(--text-primary); }
        .eod-form-modal .form-success {
            text-align: center;
            padding: 40px 20px;
        }
        .eod-form-modal .form-success .checkmark {
            font-size: 48px;
            margin-bottom: 12px;
        }
        .eod-form-modal .form-success h3 {
            font-size: 18px;
            margin-bottom: 8px;
        }
        .eod-form-modal .form-success p {
            color: var(--text-muted);
            font-size: 13px;
        }
        .eod-role-fields { display: none; }
        .eod-role-fields.active { display: block; }

        /* =================== VIEW AS POPUP =================== */
        .view-as-popup {
            display: none;
            position: fixed;
            top: 60px;
            right: 120px;
            background: #1e1e2e;
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 16px;
            z-index: 200;
            min-width: 300px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.6);
        }
        .view-as-popup.active { display: block; }
        .view-as-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--text-secondary);
        }
        .view-as-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            border-radius: var(--radius);
            cursor: pointer;
            margin-bottom: 4px;
        }
        .view-as-item:hover { background: var(--bg-card); }
        .view-as-item.selected { background: var(--accent-blue); }
        .view-as-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--accent-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 600;
        }
        .view-as-info {
            flex: 1;
        }
        .view-as-name {
            font-size: 13px;
            font-weight: 500;
        }
        .view-as-detail {
            font-size: 11px;
            color: var(--text-muted);
        }
        .view-as-select {
            width: 100%;
            padding: 10px 12px;
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 13px;
            font-family: inherit;
            margin-top: 8px;
            cursor: pointer;
        }
        .view-as-select:focus {
            outline: none;
            border-color: var(--accent-blue);
        }
        .view-as-actions {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }
        .view-as-btn {
            flex: 1;
            padding: 8px 16px;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            font-family: inherit;
        }
        .view-as-btn-primary {
            background: var(--accent-blue);
            color: #fff;
        }
        .view-as-btn-primary:hover { opacity: 0.9; }
        .view-as-btn-secondary {
            background: var(--bg-card);
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }
        .view-as-btn-secondary:hover { color: var(--text-primary); }

        /* Day-to-day colored badges */
        .badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            font-size: 11px;
            font-weight: 600;
        }
        .badge.green { background: var(--accent-green); color: white; }
        .badge.yellow { background: var(--accent-yellow); color: #1a1a2e; }
        .badge.red { background: var(--accent-primary); color: white; }
        .badge.orange { background: var(--accent-orange); color: white; }

        /* Metrics Guide popup */
        .metrics-guide {
            display: none;
            position: fixed;
            top: 50%;
            right: 40px;
            transform: translateY(-50%);
            background: #1e1e2e;
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 20px;
            z-index: 200;
            min-width: 280px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.6);
        }
        .metrics-guide.active { display: block; }
        .guide-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 12px;
        }
        .guide-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 6px 0;
            font-size: 12px;
            color: var(--text-secondary);
        }
        .guide-dots {
            display: flex;
            gap: 6px;
        }
        .guide-dot {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 9px;
            font-weight: 600;
        }

        /* Lead flow metric cards with mini chart */
        .lead-metric-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 12px 16px;
        }
        .lead-metric-card .lm-label {
            font-size: 10px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        .lead-metric-card .lm-value {
            font-size: 26px;
            font-weight: 700;
            margin: 4px 0;
        }

        /* =================== DATE RANGE PICKER =================== */
        .date-range-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            color: var(--text-primary);
            cursor: pointer;
            font-size: 13px;
            /* Fixed width so changing the label (e.g. "May 21, 2026 - ...") never resizes the
               trigger or shifts the popup. (Fran 2026-05-20) */
            width: 100%;
            box-sizing: border-box;
            min-width: 160px;
            gap: 8px;
        }
        /* The dashboard Filters card is content-width inside a space-between header, and the
           shared .date-range-trigger above is width:100% (NOT actually fixed) — so when the label
           grew from "Current Month" to "May 1, 2026 - May 31, 2026" the trigger → its grid column →
           the whole card resized and the picker shifted. Pin THIS trigger to a real fixed width so
           the box never changes size regardless of the date text. 250px fits a full range with no
           ellipsis. (Fran 2026-05-27 — supersedes the width:100% above for the dashboard picker.) */
        #dateRangeTrigger { width: 250px; flex: 0 0 auto; }
        #dateRangeLabel {
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .date-range-trigger:hover {
            border-color: var(--accent-primary);
        }
        .date-picker-popup {
            display: none;
            position: absolute;
            top: 100%;
            /* Pin to the RIGHT edge of the trigger column (stable) so the 560px popup opens
               LEFTWARD and stays on-screen. The Filters card is right-aligned in the header, so
               the old left:0 pushed the popup off the right edge → horizontal overflow shifted the
               whole layout sideways. The trigger column has a fixed grid width, so right:0 doesn't
               drift when the label text changes. (Fran 2026-05-26; supersedes 2026-05-20 left:0) */
            right: 0;
            left: auto;
            z-index: 1000;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            box-shadow: 0 10px 40px rgba(0,0,0,0.5);
            padding: 20px;
            margin-top: 8px;
            width: 560px;
        }
        .date-picker-popup.show { display: block; }
        .date-picker-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }
        .date-picker-title {
            font-weight: 600;
            font-size: 14px;
            color: var(--text-primary);
        }
        .date-nav-btn {
            background: none;
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .date-nav-btn:hover { background: var(--bg-card-hover); }
        .date-picker-calendars {
            display: flex;
            gap: 24px;
        }
        .calendar-month {
            flex: 1;
        }
        .calendar-month-title {
            text-align: center;
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 8px;
            color: var(--text-primary);
        }
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
        }
        .calendar-day-header {
            text-align: center;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            padding: 4px 0;
        }
        .calendar-day {
            text-align: center;
            padding: 6px 4px;
            font-size: 12px;
            cursor: pointer;
            border-radius: 6px;
            color: var(--text-primary);
            transition: background 0.15s;
            /* border-box + transparent border baseline so 'today'/selection borders never
               change cell size -> no grid reflow / calendar jump while picking (Fran 2026-05-20) */
            box-sizing: border-box;
            border: 1px solid transparent;
            min-height: 30px;
        }
        .calendar-day:hover { background: var(--accent-primary); color: white; }
        .calendar-day.other-month:hover { background: transparent; }
        .calendar-day.other-month { color: var(--text-muted); opacity: 0.4; }
        .calendar-day.today { border: 1px solid var(--accent-primary); }
        .calendar-day.selected { background: var(--accent-primary); color: white; }
        .calendar-day.in-range { background: rgba(224,48,48,0.2); }
        .calendar-day.range-start { background: var(--accent-primary); color: white; border-radius: 6px 0 0 6px; }
        .calendar-day.range-end { background: var(--accent-primary); color: white; border-radius: 0 6px 6px 0; }
        .date-picker-footer {
            display: flex;
            gap: 8px;
            margin-top: 12px;
            border-top: 1px solid var(--border-color);
            padding-top: 12px;
        }
        .date-preset-btn {
            padding: 6px 12px;
            background: var(--muted-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-secondary);
            font-size: 11px;
            cursor: pointer;
        }
        .date-preset-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
        .date-clear-btn {
            padding: 6px 12px;
            background: none;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-muted);
            font-size: 11px;
            cursor: pointer;
            margin-left: auto;
        }
        .date-clear-btn:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

        .res-toggle.open .res-toggle-arrow { transform: rotate(90deg); }

        /* Pod + Filters layout */
        .pod-filters-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 20px;
            margin-bottom: 12px;
        }
        .pod-filters-row .filters-panel {
            margin-bottom: 0;
            flex-shrink: 0;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .metrics-grid { grid-template-columns: repeat(2, 1fr); }
            .metrics-grid-4 { grid-template-columns: repeat(2, 1fr); }
            .metrics-grid-5 { grid-template-columns: repeat(2, 1fr); }
            .charts-row { grid-template-columns: 1fr; }
        }
        @media (max-width: 768px) {
            .metrics-grid, .metrics-grid-4, .metrics-grid-5 { grid-template-columns: 1fr; }
            .filter-row { flex-direction: column; align-items: flex-start; }
            .filters-panel { flex-direction: column; }
            .pod-filters-row { flex-direction: column; }
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg-primary); }
        ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

        /* =================== FINANCIALS PAGE =================== */
        .financials-page { padding: 0 0 0 240px; box-sizing: border-box; }
        .fin-header { border-bottom: 1px solid var(--border-color); background: var(--bg-card); padding: 16px 24px; }
        .fin-title { font-size: 18px; font-weight: 700; color: var(--accent-primary); margin-bottom: 8px; }
        .fin-top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
        .fin-client-tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
        .fin-client-tab { padding: 6px 14px; border-radius: 6px; border: none; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 12px; font-weight: 500; font-family: inherit; transition: all 0.2s; }
        .fin-client-tab:hover { background: var(--bg-card-hover); }
        .fin-client-tab.active { background: var(--accent-green); color: white; }
        .fin-filters { display: flex; gap: 12px; align-items: flex-end; flex-shrink: 0; }
        .fin-filter-group { display: flex; flex-direction: column; gap: 4px; }
        .fin-filter-group label { font-size: 11px; font-weight: 500; color: var(--text-muted); }
        .fin-filter-group input, .fin-filter-group select { padding: 6px 10px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 12px; font-family: inherit; }
        .fin-view-tabs { display: flex; gap: 4px; }
        .fin-view-tab { padding: 6px 14px; border-radius: 6px; border: none; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 12px; font-weight: 500; font-family: inherit; }
        .fin-view-tab.active { background: var(--accent-primary); color: white; }
        .fin-view-tab:hover:not(.active) { background: var(--bg-card-hover); }
        .fin-body { padding: 24px; max-width: 1400px; margin: 0 auto; }
        .fin-actions { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 16px; }
        .fin-action-btn { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border-color); background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 12px; font-weight: 500; font-family: inherit; display: flex; align-items: center; gap: 6px; }
        .fin-action-btn:hover { background: var(--bg-card-hover); }
        .fin-action-btn .dropdown-arrow { font-size: 10px; }
        .fin-invoice-menu { position: absolute; top: 100%; right: 0; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 4px 0; min-width: 160px; z-index: 100; display: none; }
        .fin-invoice-menu.open { display: block; }
        .fin-invoice-item { padding: 8px 16px; font-size: 12px; color: var(--text-secondary); cursor: pointer; font-family: inherit; width: 100%; border: none; background: none; text-align: left; }
        .fin-invoice-item:hover { background: var(--bg-card-hover); }
        /* Summary card */
        .fin-summary-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; }
        .fin-summary-title { font-size: 16px; font-weight: 600; color: var(--accent-green); margin-bottom: 12px; }
        .fin-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
        .fin-summary-row:last-child { border-bottom: none; }
        .fin-summary-row.total { background: var(--muted-bg); padding: 10px 8px; border-radius: 6px; margin-top: 4px; border-bottom: none; }
        .fin-summary-row .label { font-size: 13px; font-weight: 500; }
        .fin-summary-row .value { font-size: 13px; font-weight: 700; }
        .fin-summary-row.total .label, .fin-summary-row.total .value { font-size: 15px; }
        /* Metric cards */
        .fin-metrics-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 12px; }
        .fin-metrics-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
        .fin-metric-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 14px; }
        .fin-metric-card .icon-label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
        .fin-metric-card .icon-label .icon { font-size: 14px; }
        .fin-metric-card .icon-label span { font-size: 10px; text-transform: uppercase; font-weight: 600; color: var(--text-muted); }
        .fin-metric-card .metric-val { font-size: 22px; font-weight: 700; }
        .fin-metric-card .metric-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
        .fin-metric-card.total-sales { background: rgba(79,158,56,0.1); border: 2px solid var(--accent-green); }
        .fin-metric-card.total-sales .metric-val { color: var(--accent-green); }
        /* Deals tables */
        .fin-deals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
        .fin-deals-card { background: rgba(100,181,246,0.06); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px; }
        .fin-deals-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
        .fin-deals-table { width: 100%; border-collapse: collapse; font-size: 12px; }
        .fin-deals-table th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border-color); color: var(--text-muted); font-weight: 600; font-size: 11px; }
        .fin-deals-table th:nth-child(n+3) { text-align: right; }
        .fin-deals-table td { padding: 6px 8px; border-bottom: 1px solid var(--border-color); }
        .fin-deals-table td:nth-child(n+3) { text-align: right; }
        .fin-deals-table tr.total-row { font-weight: 700; background: var(--muted-bg); }
        .fin-deals-table .commission { color: var(--accent-green); font-weight: 600; }
        /* Deal tracker */
        .fin-tracker { margin-top: 24px; }
        .fin-tracker-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
        .fin-tracker-header h2 { font-size: 16px; font-weight: 700; }
        .fin-tracker-search { padding: 8px 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 12px; width: 280px; font-family: inherit; }
        .fin-tracker-table { width: 100%; border-collapse: collapse; font-size: 11px; background: var(--bg-card); border-radius: var(--radius); }
        .fin-tracker-table th { padding: 8px 10px; text-align: left; background: var(--muted-bg); color: var(--text-muted); font-weight: 600; font-size: 10px; text-transform: uppercase; white-space: nowrap; position: sticky; top: 0; z-index: 2; }
        .fin-tracker-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-color); white-space: nowrap; }
        .fin-tracker-table .money-green { color: var(--accent-green); font-weight: 600; }
        .fin-tracker-table .money-red { color: var(--accent-primary); font-weight: 600; }
        /* Flow bar */
        .fin-flow-bar { display:flex;align-items:stretch;gap:0;margin-bottom:24px; }
        .fin-flow-card { flex:1;background:var(--bg-card);border:1px solid var(--border-color);padding:14px 16px;display:flex;flex-direction:column;justify-content:center; }
        .fin-flow-card:first-child { border-radius:10px 0 0 10px;border-left:3px solid var(--accent-green); }
        .fin-flow-card:last-child { border-radius:0 10px 10px 0; }
        .fin-flow-label { font-size:10px;font-weight:600;text-transform:uppercase;color:var(--text-muted);letter-spacing:0.5px;margin-bottom:4px; }
        .fin-flow-value { font-size:22px;font-weight:700; }
        .fin-flow-sub { font-size:10px;color:#777;margin-top:2px; }
        .fin-flow-arrow { display:flex;align-items:center;justify-content:center;color:#555;font-size:16px;background:var(--bg-card);border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);padding:0 6px; }
        /* Risk cards */
        .fin-risk-cards { display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px; }
        .fin-risk-card { background:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;padding:16px; }
        .fin-risk-label { font-size:10px;font-weight:600;text-transform:uppercase;color:var(--text-muted);letter-spacing:0.5px;margin-bottom:6px; }
        .fin-risk-value { font-size:24px;font-weight:700;margin-bottom:2px; }
        .fin-risk-pct { font-size:11px;color:#777;margin-bottom:8px; }
        .fin-risk-bar { width:100%;height:6px;background:var(--border-color);border-radius:3px;overflow:hidden;margin-bottom:6px; }
        .fin-risk-bar-fill { height:100%;border-radius:3px; }
        .fin-risk-detail { font-size:10px; }
        /* Deal tracker status */
        .fin-deal-row td:first-child { padding-left:16px;position:relative; }
        .fin-deal-row td:first-child::before { content:'';position:absolute;left:0;top:4px;bottom:4px;width:3px;border-radius:2px; }
        .fin-deal-row.st-collected td:first-child::before { background:var(--accent-green); }
        .fin-deal-row.st-pp td:first-child::before { background:#FF9800; }
        .fin-deal-row.st-refund td:first-child::before { background:var(--accent-red); }
        .fin-status-pill { font-size:11px;font-weight:600; }
        .fin-status-pill.collected { color:var(--accent-green); }
        .fin-status-pill.pp { color:#FF9800; }
        .fin-status-pill.refund { color:var(--accent-red); }
        .fin-legend { display:flex;gap:16px;font-size:11px;color:var(--text-muted); }
        .fin-legend-item { display:flex;align-items:center;gap:5px; }
        .fin-legend-dot { width:8px;height:8px;border-radius:50%; }
        /* Platforms section */
        .fin-platform-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
        .fin-platform-card { background: var(--bg-card); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 12px; }
        .fin-platform-card .p-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
        .fin-platform-card .p-icon.green { background: rgba(79,158,56,0.2); color: var(--accent-green); }
        .fin-platform-card .p-icon.purple { background: rgba(156,39,176,0.2); color: #CE93D8; }
        .fin-platform-card .p-icon.blue { background: rgba(100,181,246,0.2); color: var(--accent-blue); }
        .fin-platform-card .p-label { font-size: 11px; color: var(--text-muted); }
        .fin-platform-card .p-value { font-size: 18px; font-weight: 700; }
        .fin-stripe-table { width: 100%; border-collapse: collapse; font-size: 11px; }
        .fin-stripe-table th { padding: 8px 10px; text-align: left; background: var(--muted-bg); color: var(--text-muted); font-weight: 600; font-size: 10px; white-space: nowrap; }
        .fin-stripe-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-color); white-space: nowrap; font-size: 11px; }
        .fin-stripe-badge { padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 500; }
        .fin-stripe-badge.paid { background: rgba(79,158,56,0.2); color: var(--accent-green); }
        .fin-stripe-badge.failed { background: rgba(224,48,48,0.2); color: var(--accent-primary); }
        /* Platform sales table */
        .fin-platforms-table { width: 100%; border-collapse: collapse; font-size: 13px; }
        .fin-platforms-table th { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border-color); color: var(--text-muted); font-weight: 600; }
        .fin-platforms-table th:nth-child(n+2) { text-align: right; }
        .fin-platforms-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-color); }
        .fin-platforms-table td:nth-child(n+2) { text-align: right; }
        .fin-platforms-table tr.total-row { font-weight: 700; background: var(--muted-bg); }
        /* Team Roster */
        /* =================== TEAM ROSTER =================== */
        .rep-portal-page { padding: 0 0 0 240px; box-sizing: border-box; }
        .team-roster { padding: 32px; max-width: 1400px; margin: 0 auto; }
        .team-roster-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
        .team-roster-header h2 { font-size: 32px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 6px; }
        .team-roster-header p { color: var(--text-muted); font-size: 13px; }
        .team-roster-actions { display: flex; gap: 12px; align-items: center; }
        .team-roster-btn { display: flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); border: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; font-family: inherit; transition: all 0.2s; }
        .team-roster-btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid rgba(58,58,60,0.3); }
        .team-roster-btn-secondary:hover { background: var(--bg-card-hover); }
        .team-roster-btn-primary { background: linear-gradient(135deg, var(--accent-primary), #96aa21); color: #2c2c2e; }
        .team-roster-btn-primary:hover { opacity: 0.9; }
        /* Table header */
        .team-roster-col-header { display: grid; grid-template-columns: 4fr 2fr 2fr 1fr 1fr; padding: 0 24px 16px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); }
        .team-roster-rows { display: flex; flex-direction: column; gap: 8px; }
        /* Glass row */
        .team-roster-row { display: grid; grid-template-columns: 4fr 2fr 2fr 1fr 1fr; align-items: center; padding: 20px 24px; border-radius: var(--radius); background: rgba(36, 36, 38, 0.4); backdrop-filter: blur(12px); transition: all 0.3s ease; cursor: pointer; }
        .team-roster-row:hover { background: rgba(36, 36, 38, 0.75); transform: translateX(4px); }
        /* Member cell */
        .team-roster-member { display: flex; align-items: center; gap: 16px; }
        .team-roster-avatar { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: white; flex-shrink: 0; filter: grayscale(100%); transition: filter 0.5s; }
        .team-roster-row:hover .team-roster-avatar { filter: grayscale(0%); }
        .team-roster-member-name { font-size: 14px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
        .team-roster-member-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
        /* Role badge */
        .team-roster-role-badge { display: inline-block; background: var(--muted-bg); color: var(--accent-primary); padding: 4px 14px; border-radius: 100px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
        /* Close rate */
        .team-roster-rate { display: flex; align-items: center; gap: 12px; }
        .team-roster-rate-value { font-size: 18px; font-weight: 700; font-style: italic; color: var(--accent-primary); }
        .team-roster-rate-bar { width: 64px; height: 4px; background: var(--bg-primary); border-radius: 2px; overflow: hidden; }
        .team-roster-rate-fill { height: 100%; background: var(--accent-primary); border-radius: 2px; }
        /* Date */
        .team-roster-date { font-size: 12px; color: var(--text-muted); font-weight: 500; }
        /* Status */
        .team-roster-status { display: flex; align-items: center; gap: 8px; }
        .team-roster-dot { width: 8px; height: 8px; border-radius: 50%; }
        .team-roster-dot.active { background: var(--accent-primary); box-shadow: 0 0 12px rgba(220, 243, 101, 0.4); }
        .team-roster-dot.inactive { background: var(--text-muted); box-shadow: 0 0 8px rgba(122, 122, 124, 0.2); }
        .team-roster-status-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
        .team-roster-status-label.active { color: var(--accent-primary); }
        .team-roster-status-label.inactive { color: var(--text-muted); }
        /* Actions */
        .team-roster-action-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; transition: color 0.2s; font-size: 20px; line-height: 1; }
        .team-roster-action-btn:hover { color: var(--accent-primary); }
        /* Footer */
        .team-roster-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(58,58,60,0.1); }
        .team-roster-stats { display: flex; gap: 48px; }
        .team-roster-stat-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 4px; }
        .team-roster-stat-value { font-size: 24px; font-weight: 800; }
        .team-roster-stat-value.accent { color: var(--accent-primary); }
        .team-roster-pagination { display: flex; align-items: center; gap: 8px; }
        .team-roster-page-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 8px; border-radius: 4px; transition: background 0.2s; font-size: 18px; }
        .team-roster-page-btn:hover { background: var(--bg-card); }
        .team-roster-page-info { font-size: 12px; font-weight: 700; padding: 0 16px; }
        /* Context menu */
        .team-roster-context { position: fixed; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 6px 0; z-index: 1000; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
        .team-roster-context-item { display: block; width: 100%; text-align: left; padding: 10px 16px; background: none; border: none; color: var(--text-secondary); font-size: 12px; font-family: inherit; cursor: pointer; transition: background 0.15s; }
        .team-roster-context-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
        .team-roster-context-item.danger { color: var(--accent-red); }
        .team-roster-context-item.danger:hover { background: rgba(240, 96, 96, 0.1); }
        /* Add Member Modal */
        .am-modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
        .am-modal-form .form-group { margin-bottom: 0; }
        .am-modal-form .full-width { grid-column: 1 / -1; }
        /* Detail expand */
        .team-roster-detail { background: var(--muted-bg); border-radius: 0 0 var(--radius) var(--radius); padding: 20px 24px; margin-top: -8px; margin-bottom: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; animation: trSlideDown 0.2s ease; }
        .team-roster-detail-item label { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px; }
        .team-roster-detail-item span { font-size: 13px; color: var(--text-primary); }
        @keyframes trSlideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
        /* Empty state */
        .team-roster-empty { text-align: center; padding: 80px 0; color: var(--text-muted); }
        .team-roster-empty p { font-size: 14px; margin-top: 8px; }
        /* Legacy (keep for GTK view) */
        .rep-body { padding: 24px; max-width: 1400px; margin: 0 auto; }
        .rep-offer-section { background: var(--muted-bg); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
        .rep-offer-section h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
        .rep-table { width: 100%; border-collapse: collapse; font-size: 12px; background: var(--bg-card); border-radius: 8px; overflow: hidden; }
        .rep-table th { padding: 8px 12px; text-align: left; background: var(--muted-bg); color: var(--text-primary); font-weight: 600; font-size: 11px; }
        .rep-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-color); }
        @media (max-width: 1024px) {
            .fin-metrics-5 { grid-template-columns: repeat(3, 1fr); }
            .fin-metrics-4 { grid-template-columns: repeat(2, 1fr); }
            .fin-deals-grid { grid-template-columns: 1fr; }
            .fin-platform-cards { grid-template-columns: 1fr; }
        }
        @media (max-width: 768px) {
            .fin-metrics-5 { grid-template-columns: 1fr; }
            .fin-top-row { flex-direction: column; }
            .fin-filters { flex-wrap: wrap; }
        }

        /* =================== ONBOARDING PAGE =================== */
        .onboarding-page { padding: 0 0 0 240px; box-sizing: border-box; }
        .ob-header { padding: 40px 32px 0; max-width: 1200px; margin: 0 auto; }
        .ob-hero-title {
            font-size: 2.75rem;
            font-weight: 800;
            letter-spacing: -0.03em;
            color: var(--text-primary);
            margin-bottom: 4px;
        }
        .ob-hero-subtitle {
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--text-muted);
            margin-bottom: 24px;
        }
        .ob-top-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
        .ob-offer-tabs { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
        .ob-offer-tab {
            padding: 8px 20px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            background: var(--bg-input);
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 11px;
            font-weight: 600;
            font-family: inherit;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            transition: all 0.2s;
        }
        .ob-offer-tab:hover { background: var(--bg-card); color: var(--text-primary); }
        .ob-offer-tab.active { background: var(--accent-primary); border-color: var(--accent-primary); color: #2c2c2e; font-weight: 700; }
        .ob-view-tabs { display: flex; gap: 4px; }
        .ob-view-tab { padding: 8px 20px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-secondary); cursor: pointer; font-size: 11px; font-weight: 600; font-family: inherit; text-transform: uppercase; letter-spacing: 0.08em; transition: all 0.2s; }
        .ob-view-tab.active { background: var(--accent-primary); border-color: var(--accent-primary); color: #2c2c2e; }
        .ob-view-tab:hover:not(.active) { background: var(--bg-card); }
        .ob-body { padding: 32px; max-width: 1200px; margin: 0 auto; }
        /* Kinetic two-column layout */
        .ob-kinetic-layout {
            display: grid;
            grid-template-columns: 5fr 7fr;
            gap: 32px;
            align-items: start;
        }
        @media (max-width: 1024px) { .ob-kinetic-layout { grid-template-columns: 1fr; } }
        /* Left: Mission Readiness */
        .ob-mission-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .ob-mission-title {
            font-size: 17px;
            font-weight: 700;
            color: var(--text-primary);
        }
        .ob-mission-pct {
            font-size: 14px;
            font-weight: 700;
            color: var(--accent-primary);
        }
        .ob-mission-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .ob-mission-item {
            background: var(--bg-secondary);
            padding: 16px 18px;
            display: flex;
            align-items: center;
            gap: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-right: 4px solid rgba(220, 243, 101, 0.15);
        }
        .ob-mission-item:hover { background: var(--bg-card); }
        .ob-mission-item.completed { border-right-color: var(--accent-primary); }
        .ob-mission-item.active {
            border-right-color: var(--accent-primary);
            background: var(--bg-card);
        }
        .ob-mission-item.locked { opacity: 0.5; }
        .ob-mission-num {
            font-size: 22px;
            font-weight: 900;
            color: rgba(220, 243, 101, 0.3);
            width: 32px;
            flex-shrink: 0;
            transition: color 0.2s;
        }
        .ob-mission-item:hover .ob-mission-num,
        .ob-mission-item.active .ob-mission-num { color: var(--accent-primary); }
        .ob-mission-info { flex: 1; min-width: 0; }
        .ob-mission-name {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
        }
        .ob-mission-desc {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 2px;
        }
        .ob-mission-status .material-symbols-outlined {
            font-size: 20px;
        }
        .ob-mission-item.completed .ob-mission-status .material-symbols-outlined {
            color: var(--accent-primary);
        }
        .ob-mission-item:not(.completed) .ob-mission-status .material-symbols-outlined {
            color: var(--text-muted);
        }
        /* Progress bar below mission list */
        .ob-mission-progress {
            margin-top: 20px;
            padding: 16px 18px;
            background: var(--bg-secondary);
        }
        .ob-mission-progress-header {
            display: flex;
            justify-content: space-between;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--text-muted);
            margin-bottom: 10px;
        }
        .ob-mission-progress-bar {
            height: 4px;
            width: 100%;
            background: var(--bg-primary);
            overflow: hidden;
        }
        .ob-mission-progress-fill {
            height: 100%;
            background: var(--accent-primary);
            transition: width 0.4s ease;
        }
        /* Right: Video hero panel */
        .ob-hero-panel {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }
        .ob-hero-video {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            background: var(--bg-card);
            min-height: 380px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }
        .ob-hero-video-bg {
            position: absolute;
            inset: 0;
            opacity: 0.15;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .ob-hero-video-bg .material-symbols-outlined {
            font-size: 180px;
            color: var(--text-muted);
        }
        .ob-hero-video-gradient {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, var(--bg-primary), transparent);
        }
        .ob-hero-video-content {
            position: relative;
            z-index: 2;
            padding: 40px;
        }
        .ob-hero-video-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            background: var(--accent-primary);
            color: #2c2c2e;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            border-radius: 2px;
            margin-bottom: 16px;
        }
        .ob-hero-video-title {
            font-size: 1.75rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            margin-bottom: 8px;
            line-height: 1.2;
        }
        .ob-hero-video-desc {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
            max-width: 480px;
            margin-bottom: 24px;
        }
        .ob-hero-watch-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 14px 28px;
            background: linear-gradient(135deg, var(--accent-primary) 0%, #96aa21 100%);
            color: #2c2c2e;
            font-weight: 700;
            font-size: 13px;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-family: inherit;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: transform 0.15s, filter 0.15s;
            text-decoration: none;
        }
        .ob-hero-watch-btn:hover { filter: brightness(1.1); }
        .ob-hero-watch-btn:active { transform: scale(0.97); }
        .ob-hero-watch-btn .material-symbols-outlined {
            font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }
        /* Document cards below video */
        .ob-hero-docs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        @media (max-width: 640px) { .ob-hero-docs { grid-template-columns: 1fr; } }
        .ob-doc-card {
            background: var(--bg-secondary);
            padding: 18px 20px;
            border-radius: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .ob-doc-card:hover { background: var(--bg-card); }
        .ob-doc-card-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .ob-doc-card-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: var(--bg-card-hover);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .ob-doc-card-icon .material-symbols-outlined {
            font-size: 20px;
            color: var(--text-muted);
            transition: color 0.2s;
        }
        .ob-doc-card:hover .ob-doc-card-icon .material-symbols-outlined { color: var(--accent-primary); }
        .ob-doc-card-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
        }
        .ob-doc-card-type {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--text-muted);
            margin-top: 2px;
        }
        .ob-doc-card-action .material-symbols-outlined {
            font-size: 18px;
            color: var(--text-muted);
        }
        /* Empty state for hero */
        .ob-hero-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 380px;
            background: var(--bg-card);
            border-radius: 10px;
            text-align: center;
            padding: 40px;
        }
        .ob-hero-empty .material-symbols-outlined {
            font-size: 64px;
            color: var(--accent-primary);
            margin-bottom: 16px;
        }
        /* Admin overview cards */
        .ob-overview-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
        .ob-overview-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px; }
        .ob-overview-card .ob-card-label { font-size: 11px; text-transform: uppercase; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
        .ob-overview-card .ob-card-value { font-size: 24px; font-weight: 700; }
        .ob-overview-card .ob-card-value.green { color: var(--accent-green); }
        .ob-overview-card .ob-card-value.blue { color: var(--accent-blue); }
        .ob-overview-card .ob-card-value.yellow { color: var(--accent-yellow); }
        .ob-overview-card .ob-card-value.red { color: var(--accent-primary); }
        /* Admin rep progress table */
        .ob-progress-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
        .ob-progress-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-color); }
        .ob-progress-header h3 { font-size: 14px; font-weight: 600; }
        .ob-progress-search { padding: 6px 10px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 12px; width: 220px; font-family: inherit; }
        .ob-progress-table { width: 100%; border-collapse: collapse; font-size: 12px; }
        .ob-progress-table th { padding: 8px 12px; text-align: left; background: var(--muted-bg); color: var(--text-muted); font-weight: 600; font-size: 10px; text-transform: uppercase; }
        .ob-progress-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); }
        .ob-progress-table tr:hover { background: var(--bg-card-hover); }
        .ob-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-blue); color: white; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; margin-right: 8px; vertical-align: middle; }
        .ob-progress-bar-wrap { display: flex; align-items: center; gap: 8px; }
        .ob-progress-bar { width: 120px; height: 6px; background: var(--muted-bg); border-radius: 3px; overflow: hidden; }
        .ob-progress-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
        .ob-progress-pct { font-size: 12px; font-weight: 600; min-width: 36px; }
        .ob-status-badge { padding: 3px 10px; border-radius: 12px; font-size: 10px; font-weight: 600; }
        .ob-status-badge.completed { background: rgba(79,158,56,0.2); color: var(--accent-green); }
        .ob-status-badge.in-progress { background: rgba(100,181,246,0.2); color: var(--accent-blue); }
        .ob-status-badge.not-started { background: rgba(160,160,160,0.2); color: var(--text-muted); }
        /* Rep view - Setup checklist */
        .ob-setup-section { margin-bottom: 32px; }
        .ob-setup-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
        .ob-setup-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
        .ob-setup-steps { display: flex; flex-direction: column; gap: 8px; }
        .ob-step { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: all 0.2s; }
        .ob-step:hover { border-color: var(--accent-blue); }
        .ob-step.done { border-color: var(--accent-green); }
        .ob-step-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; color: transparent; transition: all 0.2s; }
        .ob-step.done .ob-step-check { background: var(--accent-green); border-color: var(--accent-green); color: white; }
        .ob-step-num { font-size: 11px; font-weight: 700; color: var(--text-muted); width: 24px; flex-shrink: 0; }
        .ob-step-content { flex: 1; }
        .ob-step-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
        .ob-step-desc { font-size: 11px; color: var(--text-muted); }
        .ob-step-link { padding: 6px 14px; border-radius: 6px; border: none; background: var(--accent-blue); color: white; cursor: pointer; font-size: 11px; font-weight: 600; font-family: inherit; text-decoration: none; flex-shrink: 0; }
        .ob-step-link:hover { opacity: 0.85; }
        /* Rep view - Course sections */
        .ob-course-section { margin-bottom: 32px; }
        .ob-course-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
        .ob-section-block { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
        .ob-section-header { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: var(--muted-bg); transition: background 0.2s; }
        .ob-section-header:hover { background: var(--bg-card-hover); }
        .ob-section-header h4 { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
        .ob-section-header .ob-section-count { font-size: 11px; font-weight: 500; color: var(--text-muted); }
        .ob-section-header .ob-section-arrow { font-size: 12px; color: var(--text-muted); transition: transform 0.2s; }
        .ob-section-block.open .ob-section-arrow { transform: rotate(180deg); }
        .ob-section-lessons { display: none; }
        .ob-section-block.open .ob-section-lessons { display: block; }
        .ob-lesson { padding: 12px 16px 12px 44px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border-color); transition: background 0.15s; cursor: pointer; }
        .ob-lesson:last-child { border-bottom: none; }
        .ob-lesson:hover { background: var(--bg-card-hover); }
        .ob-lesson-check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 10px; color: transparent; cursor: pointer; }
        .ob-lesson.done .ob-lesson-check { background: var(--accent-green); border-color: var(--accent-green); color: white; }
        .ob-lesson-name { font-size: 12px; flex: 1; }
        .ob-lesson.done .ob-lesson-name { color: var(--text-muted); text-decoration: line-through; }
        .ob-edit-toolbar { display:flex; gap:8px; margin-bottom:12px; justify-content:flex-end; align-items:center; }
        .ob-edit-toolbar button { padding:5px 14px; border-radius:6px; border:1px solid var(--border-color); background:var(--bg-card); color:var(--text-primary); cursor:pointer; font-size:12px; font-family:inherit; }
        .ob-edit-toolbar .ob-save-btn { background:var(--accent-blue); color:white; border:none; font-weight:600; }
        .ob-edit-toolbar .ob-reset-btn { color:var(--text-muted); font-size:11px; }
        .ob-edit-input { background:var(--muted-bg); border:1px solid var(--border-color); border-radius:4px; padding:4px 8px; font-size:12px; font-family:inherit; color:var(--text-primary); outline:none; }
        .ob-edit-input:focus { border-color:var(--accent-blue); }
        .ob-edit-input.wide { width:100%; box-sizing:border-box; }
        .ob-edit-input.name { flex:1; min-width:0; }
        .ob-edit-select { background:var(--muted-bg); border:1px solid var(--border-color); border-radius:4px; padding:3px 6px; font-size:11px; color:var(--text-primary); font-family:inherit; cursor:pointer; }
        .ob-remove-btn { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:16px; padding:2px 6px; line-height:1; }
        .ob-remove-btn:hover { color:var(--accent-red); }
        .ob-add-btn { background:none; border:1px dashed var(--border-color); border-radius:6px; padding:6px 12px; font-size:12px; color:var(--text-muted); cursor:pointer; width:100%; margin-top:4px; text-align:center; }
        .ob-add-btn:hover { border-color:var(--accent-blue); color:var(--accent-blue); }
        .ob-edit-row { display:flex; align-items:center; gap:6px; padding:6px 8px; background:var(--bg-card); border:1px solid var(--border-color); border-radius:6px; margin-bottom:4px; }
        .ob-edit-url { font-size:11px; color:var(--text-muted); margin-top:2px; }
        .ob-lesson-type { font-size: 10px; color: var(--text-muted); padding: 2px 8px; background: var(--muted-bg); border-radius: 4px; }
        .ob-section-progress { display: flex; align-items: center; gap: 6px; }
        .ob-section-progress-bar { width: 60px; height: 4px; background: var(--muted-bg); border-radius: 2px; overflow: hidden; }
        .ob-section-progress-fill { height: 100%; background: var(--accent-green); border-radius: 2px; }
        /* Expandable step and lesson open button */
        .ob-step-main { display: flex; align-items: center; gap: 14px; cursor: pointer; flex: 1; }
        .ob-step { flex-direction: column; align-items: stretch; }
        .ob-step-main { padding: 0; }
        .ob-lesson-open { padding: 3px 10px; border-radius: 6px; border: none; background: var(--accent-blue); color: white; cursor: pointer; font-size: 10px; font-weight: 600; font-family: inherit; text-decoration: none; flex-shrink: 0; }
        .ob-lesson-open:hover { opacity: 0.85; }
        .ob-lesson-type.quiz { background: rgba(224,48,48,0.15); color: var(--accent-primary); }
        .ob-lesson-type.video { background: rgba(100,181,246,0.15); color: var(--accent-blue); }
        .ob-lesson-type.doc { background: rgba(79,158,56,0.15); color: var(--accent-green); }
        .ob-section-progress-text { font-size: 10px; color: var(--text-muted); }
        @media (max-width: 1024px) { .ob-overview-cards { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 768px) { .ob-overview-cards { grid-template-columns: 1fr; } }

        /* =================== ORG CHART PAGE =================== */
        .org-chart-page { padding: 0; }
        .oc-header { border-bottom: 1px solid var(--border-color); background: var(--bg-card); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
        .oc-title { font-size: 18px; font-weight: 700; color: var(--accent-primary); }
        .oc-body { padding: 24px; max-width: 1200px; margin: 0 auto; }
        .oc-section { margin-bottom: 28px; }
        .oc-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
        .oc-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
        .oc-section-count { font-size: 11px; color: var(--text-muted); background: var(--muted-bg); padding: 2px 8px; border-radius: 10px; }
        .oc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
        .oc-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px; transition: border-color 0.2s; }
        .oc-card:hover { border-color: rgba(224,48,48,0.4); }
        .oc-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
        .oc-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: white; flex-shrink: 0; }
        .oc-card-name { font-size: 14px; font-weight: 600; }
        .oc-card-role { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
        .oc-card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
        .oc-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; display: inline-block; }
        .oc-badge.senior { background: rgba(255,159,0,0.2); color: var(--accent-yellow); }
        .oc-badge.active { background: rgba(79,158,56,0.2); color: var(--accent-green); }
        .oc-badge.offer { background: rgba(100,181,246,0.15); color: var(--accent-blue); }
        .oc-badge.leadership { background: rgba(224,48,48,0.15); color: var(--accent-primary); }
        .oc-badge.ops { background: rgba(171,71,188,0.15); color: #AB47BC; }
        .oc-toggle-btn { font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 10px; border: 1px solid var(--border-color); background: transparent; color: var(--text-muted); cursor: pointer; font-family: inherit; transition: all 0.2s; }
        .oc-toggle-btn:hover { border-color: var(--accent-yellow); color: var(--accent-yellow); }
        .oc-card-email { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
        @media (max-width: 768px) { .oc-cards { grid-template-columns: 1fr; } }

        /* =================== RESOURCES PAGE =================== */
        .resources-page {
            padding: 40px 32px 40px 272px;
            max-width: none;
            width: 100%;
            box-sizing: border-box;
        }
        .resources-hero h2 {
            font-size: 2.75rem;
            font-weight: 800;
            letter-spacing: -0.03em;
            color: var(--text-primary);
            margin-bottom: 6px;
        }
        .resources-hero p {
            color: var(--text-muted);
            font-size: 14px;
            max-width: 520px;
            margin-bottom: 32px;
        }
        .resources-offer-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 28px;
        }
        .resources-offer-tab {
            padding: 8px 20px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            background: var(--bg-input);
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 11px;
            font-weight: 600;
            font-family: inherit;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            transition: all 0.2s;
        }
        .resources-offer-tab:hover { background: var(--bg-card); color: var(--text-primary); }
        .resources-offer-tab.active {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            color: #2c2c2e;
            font-weight: 700;
        }
        .resources-grid {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 24px;
        }
        /* Glass card utility */
        .glass-card {
            background: rgba(46, 46, 48, 0.6);
            backdrop-filter: blur(20px);
        }
        /* Accordion categories */
        .res-accordion {
            border-radius: 10px;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        .res-accordion-header {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 20px 24px;
            background: var(--bg-secondary);
            border: none;
            cursor: pointer;
            user-select: none;
            transition: all 0.3s ease;
            border-radius: 10px;
        }
        .res-accordion-header:hover {
            background: var(--bg-card);
            transform: translateX(4px);
        }
        .res-accordion-icon {
            width: 48px;
            height: 48px;
            border-radius: 10px;
            background: var(--bg-card-hover);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.3s ease;
        }
        .res-accordion-icon .material-symbols-outlined {
            font-size: 24px;
            color: var(--accent-primary);
            transition: color 0.3s ease;
        }
        .res-accordion-info {
            flex: 1;
            text-align: left;
        }
        .res-accordion-title {
            font-size: 17px;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.02em;
            transition: color 0.3s ease;
        }
        .res-accordion-subtitle {
            font-size: 10px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--text-muted);
            margin-top: 4px;
            opacity: 0.6;
        }
        .res-accordion-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .res-accordion-badge {
            padding: 4px 12px;
            border-radius: 20px;
            background: var(--bg-card-hover);
            color: var(--accent-primary);
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            border: 1px solid rgba(220, 243, 101, 0.2);
            white-space: nowrap;
        }
        .res-accordion-toggle .material-symbols-outlined {
            font-size: 20px;
            color: var(--text-muted);
            transition: color 0.3s ease;
        }
        /* Open state */
        .res-accordion.open {
            background: var(--bg-card);
            box-shadow: 0 16px 48px rgba(220, 243, 101, 0.04);
            border: 1px solid rgba(220, 243, 101, 0.15);
        }
        .res-accordion.open .res-accordion-header {
            background: transparent;
            border-radius: 10px 10px 0 0;
        }
        .res-accordion.open .res-accordion-header:hover {
            transform: none;
        }
        .res-accordion.open .res-accordion-icon {
            background: var(--accent-primary);
        }
        .res-accordion.open .res-accordion-icon .material-symbols-outlined {
            color: #2c2c2e;
            font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }
        .res-accordion.open .res-accordion-title {
            color: var(--accent-primary);
        }
        .res-accordion.open .res-accordion-badge {
            background: rgba(220, 243, 101, 0.1);
        }
        .res-accordion.open .res-accordion-toggle .material-symbols-outlined {
            color: var(--accent-primary);
        }
        /* Accordion content */
        .res-accordion-content {
            display: none;
            padding: 0 24px 24px;
        }
        .res-accordion.open .res-accordion-content { display: block; }
        .res-accordion-items {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }
        @media (max-width: 640px) {
            .res-accordion-items { grid-template-columns: 1fr; }
        }
        .res-section-title {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--accent-primary);
            margin: 12px 0 8px;
            grid-column: 1 / -1;
        }
        .res-section-title:first-child { margin-top: 0; }
        /* Resource link items (glass cards) */
        .resource-link {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            border-radius: 10px;
            text-decoration: none;
            color: var(--text-primary);
            font-size: 13px;
            transition: all 0.2s ease;
            background: rgba(46, 46, 48, 0.6);
            backdrop-filter: blur(20px);
            cursor: pointer;
        }
        .resource-link:hover {
            box-shadow: 0 0 0 1px rgba(220, 243, 101, 0.3);
        }
        .resource-link-icon-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--bg-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .resource-link-icon-circle .material-symbols-outlined {
            font-size: 18px;
            color: var(--accent-primary);
        }
        .resource-link-info { flex: 1; min-width: 0; }
        .resource-link-label {
            font-weight: 600;
            font-size: 13px;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .resource-link-desc {
            font-size: 10px;
            color: var(--text-muted);
            margin-top: 3px;
            text-transform: uppercase;
            font-weight: 500;
            letter-spacing: 0.05em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .resource-link.disabled {
            opacity: 0.4;
            cursor: default;
        }
        .resource-link.disabled:hover { box-shadow: none; }
        /* =================== SCORECARDS BUILDER =================== */
        .sc-weight-bar { height:8px; background:var(--border-color); border-radius:4px; overflow:hidden; }
        .sc-weight-fill { height:100%; border-radius:4px; background:linear-gradient(90deg, #7C3AED, #3B82F6); transition:width 0.2s, background 0.2s; }
        .sc-category { background:var(--bg-primary); border:1px solid var(--border-color); border-radius:10px; padding:14px 16px; margin-bottom:10px; }
        .sc-category-header { display:flex; align-items:center; gap:10px; cursor:pointer; }
        .sc-criterion { display:flex; align-items:center; justify-content:space-between; padding:7px 0; border-bottom:1px solid var(--border-color); gap:8px; }
        .sc-criterion:last-of-type { border-bottom:none; }
        .sc-criterion-required { background:rgba(240,96,96,0.12); color:#f06060; }
        .sc-criterion-optional { background:var(--bg-card-hover); color:var(--text-muted); }
        .sc-btn-add { background:none; border:1px dashed var(--border-color); border-radius:8px; color:var(--text-muted); cursor:pointer; font-family:inherit; transition:border-color 0.15s, color 0.15s; }
        .sc-btn-add:hover { border-color:var(--accent-primary); color:var(--accent-primary); }
        .sc-input { background:transparent; border:1px solid transparent; border-radius:6px; color:var(--text-primary); font-family:inherit; padding:4px 8px; outline:none; transition:border-color 0.15s; }
        .sc-input:hover { border-color:var(--border-color); }
        .sc-input:focus { border-color:var(--accent-primary); background:var(--bg-primary); }

        /* =================== PRECISION GRAPH CANVAS (Figma) =================== */
        .pgc-wrap { background:#3a3a3c; border-radius:4px; border:1px solid rgba(72,71,74,0.2); padding:24px 32px 16px; display:flex; flex-direction:column; gap:12px; position:relative; overflow:hidden; box-shadow:0 25px 50px -12px rgba(0,0,0,0.25); }
        .pgc-wrap::before { content:''; position:absolute; inset:0; background:linear-gradient(90deg,rgba(72,71,74,0.1) 2.5%,transparent 2.5%),linear-gradient(180deg,rgba(72,71,74,0.1) 2.5%,transparent 2.5%); opacity:0.4; pointer-events:none; }
        .pgc-title { font-family:'Manrope','Inter',sans-serif; font-size:24px; font-weight:800; letter-spacing:-1px; line-height:1.2; position:relative; z-index:1; }
        .pgc-title-white { color:#fefbfe; }
        .pgc-title-accent { color:#DFF768; }
        .pgc-legend { display:flex; gap:24px; position:relative; z-index:1; }
        .pgc-legend-item { display:flex; align-items:center; gap:10px; font-size:11px; color:#fefbfe; text-transform:uppercase; letter-spacing:1.1px; }
        .pgc-legend-line { width:48px; height:2px; flex-shrink:0; }
        .pgc-line-solid { box-shadow:0 0 4px rgba(223,247,104,0.4); }
        .pgc-line-dashed { border-top:2px dashed #acaaad; background:none !important; }
        .pgc-chart-area { position:relative; height:340px; z-index:1; }

        /* =================== VERTICAL PACE TRACKER =================== */
        .vpt-wrap { background:#3a3a3c; border-radius:4px; border:1px solid rgba(72,71,74,0.2); padding:24px 32px 28px; display:flex; flex-direction:column; gap:20px; position:relative; overflow:hidden; box-shadow:0 25px 50px -12px rgba(0,0,0,0.25); }
        .vpt-wrap::before { content:''; position:absolute; inset:0; background:linear-gradient(90deg,rgba(72,71,74,0.1) 2.5%,transparent 2.5%),linear-gradient(180deg,rgba(72,71,74,0.1) 2.5%,transparent 2.5%); opacity:0.4; pointer-events:none; }
        .vpt-header { display:flex; justify-content:space-between; align-items:center; position:relative; z-index:1; }
        .vpt-title { font-family:'Manrope','Inter',sans-serif; color:#fefbfe; font-size:24px; font-weight:800; letter-spacing:-1px; line-height:1.2; }
        .vpt-badge { font-size:10px; color:var(--text-muted); border:1px solid var(--border-color); border-radius:20px; padding:3px 10px; }
        .vpt-bars { display:flex; align-items:flex-end; justify-content:space-between; height:280px; gap:0; padding:0 8px; }
        .vpt-metric { display:flex; flex-direction:column; align-items:center; flex:1; align-self:stretch; min-width:0; }
        .vpt-bar-bg { background:#252528; border-radius:2px 2px 0 0; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-end; flex:1; align-self:stretch; position:relative; }
        .vpt-bar-fill { background:var(--accent-primary); border-radius:2px 2px 0 0; border:1px solid #48474a; border-bottom:none; position:relative; box-shadow:0 -4px 16px 0 rgba(223,247,104,0.2); min-height:4px; transition:height 0.6s ease; }
        .vpt-pct { position:absolute; top:-22px; left:50%; transform:translateX(-50%); color:var(--accent-primary); font-size:10px; font-weight:700; white-space:nowrap; opacity:0; transition:opacity 0.2s; }
        .vpt-metric:hover .vpt-pct { opacity:1; }
        .vpt-pace-line { position:absolute; left:0; right:0; border-top:1px dashed rgba(72,71,74,0.5); pointer-events:none; }
        .vpt-label-wrap { padding-top:14px; }
        .vpt-label { color:#acaaad; text-align:center; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1px; white-space:nowrap; }

        /* =================== CALL AUDIO PLAYER =================== */
        .cq-audio-player { background:#131315; border-radius:16px; border:1px solid rgba(72,72,74,0.05); padding:24px 24px 40px; display:flex; flex-direction:column; gap:32px; overflow:hidden; }
        .cq-audio-header { display:flex; align-items:center; justify-content:space-between; }
        .cq-audio-left { display:flex; align-items:center; gap:16px; }
        .cq-audio-play { background:#DFF768; border-radius:12px; width:48px; height:48px; display:flex; align-items:center; justify-content:center; cursor:pointer; border:none; flex-shrink:0; transition:opacity 0.15s; }
        .cq-audio-play:hover { opacity:0.85; }
        .cq-audio-play svg { width:20px; height:20px; }
        .cq-audio-time { font-family:'Inter',sans-serif; font-weight:700; font-size:14px; color:#fff; line-height:20px; }
        .cq-audio-phase { font-family:'Inter',sans-serif; font-weight:400; font-size:10px; color:#ACAAAD; text-transform:uppercase; letter-spacing:1px; line-height:15px; }
        .cq-audio-controls { display:flex; align-items:center; gap:12px; }
        .cq-audio-ctrl-btn { background:none; border:none; cursor:pointer; color:#ACAAAD; padding:4px; display:flex; align-items:center; transition:color 0.15s; }
        .cq-audio-ctrl-btn:hover { color:#DFF768; }
        .cq-audio-speed { font-family:'Inter',sans-serif; font-size:11px; font-weight:700; color:#FEFBFE; background:#2a2a2c; cursor:pointer; padding:4px 10px; border-radius:6px; border:1px solid rgba(72,72,74,0.4); transition:background 0.15s, border-color 0.15s, color 0.15s; }
        .cq-audio-speed:hover { background:#3a3a3c; color:#DFF768; border-color:rgba(223,247,104,0.5); }
        /* Volume slider — appears inline next to the speaker icon */
        .cq-audio-volume-wrap { display:flex; align-items:center; gap:8px; }
        .cq-audio-volume-slider { -webkit-appearance:none; appearance:none; width:70px; height:4px; background:#3a3a3c; border-radius:2px; outline:none; cursor:pointer; }
        .cq-audio-volume-slider::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:14px; height:14px; background:#DFF768; border-radius:50%; cursor:pointer; border:2px solid #1a1a1c; }
        .cq-audio-volume-slider::-moz-range-thumb { width:14px; height:14px; background:#DFF768; border-radius:50%; cursor:pointer; border:2px solid #1a1a1c; }
        .cq-audio-waveform { display:flex; align-items:flex-end; justify-content:center; gap:3px; height:64px; cursor:pointer; position:relative; }
        .cq-audio-bar { flex:1; border-radius:2px 2px 0 0; min-width:2px; transition:background 0.1s; }
        .cq-audio-bar.played { background:#DFF768; }
        .cq-audio-bar.unplayed { background:#1F1F22; }
        .cq-audio-bar.played.dim { opacity:0.6; }

/* =================== REPORTS PAGE =================== */
/* Match the pattern used by .financials-page: page takes responsibility for the
   240px sidebar offset via padding-left, since .ps-content-wrapper's margin-left
   doesn't reliably apply for absolute-positioned overlay pages. */
#reportsPage, #meetingsPage { padding-left: 240px; box-sizing: border-box; }

.reports-page { padding:28px 32px; max-width:1400px; margin:0 auto; box-sizing:border-box; }
.reports-header { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:24px; flex-wrap:wrap; gap:16px; }
.reports-title { font-size:24px; font-weight:800; color:var(--text-primary); letter-spacing:-0.3px; margin:0; }
.reports-subtitle { font-size:12px; color:var(--text-muted); margin:4px 0 0; }
.reports-controls { display:flex; gap:8px; align-items:center; }
.reports-select { background:var(--bg-card); color:var(--text-primary); border:1px solid var(--border-color); border-radius:10px; padding:8px 12px; font-size:13px; font-weight:600; cursor:pointer; }
.reports-fetch-btn { background:var(--accent-primary); color:#1a1a1a; border:none; border-radius:10px; padding:9px 16px; font-size:13px; font-weight:800; cursor:pointer; transition:opacity 0.15s; }
.reports-fetch-btn:hover { opacity:0.85; }
.reports-fetch-btn:disabled { opacity:0.5; cursor:wait; }
.reports-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; margin-bottom:24px; }
.reports-column { background:var(--bg-card); border-radius:14px; border:1px solid var(--border-color); overflow:hidden; display:flex; flex-direction:column; min-height:480px; }
.reports-column-header { padding:14px 16px; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:1.4px; color:var(--text-muted); border-bottom:1px solid var(--border-color); background:rgba(255,255,255,0.02); }
.reports-column-body { padding:10px; overflow-y:auto; max-height:640px; flex:1; }
.report-card { background:rgba(255,255,255,0.02); border:1px solid var(--border-color); border-radius:10px; padding:12px 14px; margin-bottom:8px; cursor:pointer; transition:background 0.15s, border-color 0.15s; }
.report-card:hover { background:rgba(223,247,104,0.05); border-color:rgba(223,247,104,0.3); }
.report-card-date { font-size:11px; color:var(--text-muted); font-weight:700; letter-spacing:0.5px; text-transform:uppercase; }
.report-card-title { font-size:13px; color:var(--text-primary); font-weight:700; margin-top:4px; line-height:1.35; }
.report-card-status { display:inline-block; margin-top:6px; font-size:10px; padding:2px 8px; border-radius:20px; font-weight:700; letter-spacing:0.3px; text-transform:uppercase; }
.report-card-status.complete { background:rgba(79,158,56,0.15); color:#79c160; }
.report-card-status.partial { background:rgba(255,159,0,0.15); color:#ffb547; }
.report-card-status.failed { background:rgba(224,48,48,0.15); color:#ff5a5a; }
.reports-empty { padding:24px 16px; text-align:center; color:var(--text-muted); font-size:12px; }
.reports-detail { margin-top:16px; background:var(--bg-card); border-radius:14px; border:1px solid var(--border-color); padding:24px 28px; }
.reports-detail-header { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border-color); padding-bottom:12px; margin-bottom:16px; }
.reports-detail-header h3 { margin:0; font-size:18px; font-weight:800; color:var(--text-primary); }
.reports-detail-close { background:none; border:none; color:var(--text-muted); font-size:22px; cursor:pointer; padding:0 8px; }
.reports-detail-close:hover { color:var(--text-primary); }
.reports-detail-body { color:var(--text-primary); font-size:13px; line-height:1.65; }
.reports-detail-body h1 { font-size:22px; margin:0 0 12px; font-weight:800; }
.reports-detail-body h2 { font-size:16px; margin:20px 0 8px; font-weight:800; color:var(--accent-primary); }
.reports-detail-body h3 { font-size:14px; margin:16px 0 6px; font-weight:700; }
.reports-detail-body table { width:100%; border-collapse:collapse; margin:8px 0 16px; font-size:12px; }
.reports-detail-body th, .reports-detail-body td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--border-color); }
.reports-detail-body th { font-weight:700; color:var(--text-muted); text-transform:uppercase; font-size:10px; letter-spacing:1px; }
.reports-detail-body ul, .reports-detail-body ol { padding-left:22px; }
.reports-detail-body code { background:rgba(255,255,255,0.05); padding:1px 6px; border-radius:4px; font-family:monospace; font-size:12px; }
.reports-detail-body pre { background:rgba(0,0,0,0.3); padding:12px; border-radius:8px; overflow-x:auto; }

/* =================== MEETINGS PAGE =================== */
.meetings-page { padding:28px 32px; max-width:1400px; margin:0 auto; box-sizing:border-box; }
.meetings-header { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:24px; flex-wrap:wrap; gap:16px; }
.meetings-title { font-size:24px; font-weight:800; color:var(--text-primary); letter-spacing:-0.3px; margin:0; }
.meetings-subtitle { font-size:12px; color:var(--text-muted); margin:4px 0 0; }
.meetings-controls { display:flex; gap:8px; align-items:center; }
.meetings-select { background:var(--bg-card); color:var(--text-primary); border:1px solid var(--border-color); border-radius:10px; padding:8px 12px; font-size:13px; font-weight:600; cursor:pointer; }
.meetings-layout { display:grid; grid-template-columns:380px minmax(0, 1fr); gap:16px; min-height:600px; }
.meetings-list { background:var(--bg-card); border-radius:14px; border:1px solid var(--border-color); overflow-y:auto; max-height:780px; padding:10px; }
.meeting-row { padding:12px 14px; border-bottom:1px solid var(--border-color); cursor:pointer; transition:background 0.15s; border-radius:10px; }
.meeting-row:hover { background:rgba(223,247,104,0.05); }
.meeting-row.active { background:rgba(223,247,104,0.1); border-color:rgba(223,247,104,0.3); }
.meeting-row-date { font-size:11px; color:var(--text-muted); font-weight:700; letter-spacing:0.5px; }
.meeting-row-title { font-size:13px; color:var(--text-primary); font-weight:700; margin-top:3px; }
.meeting-row-meta { display:flex; gap:8px; margin-top:6px; font-size:10px; color:var(--text-muted); }
.meeting-row-type { padding:2px 8px; border-radius:12px; background:rgba(255,255,255,0.05); font-weight:700; text-transform:uppercase; letter-spacing:0.5px; }
.meeting-row-type.client { background:rgba(100,181,246,0.15); color:#64B5F6; }
.meeting-row-type.internal { background:rgba(79,158,56,0.15); color:#79c160; }
.meeting-row-chips { display:flex; gap:4px; }
.meeting-row-chip { padding:1px 6px; border-radius:10px; font-weight:700; font-size:9px; }
.meeting-row-chip.actions { background:rgba(255,159,0,0.15); color:#ffb547; }
.meeting-row-chip.risks { background:rgba(224,48,48,0.2); color:#ff7a7a; }
.meetings-detail { background:var(--bg-card); border-radius:14px; border:1px solid var(--border-color); padding:24px 28px; min-height:600px; }
.meetings-empty, .meetings-empty-state { padding:48px 24px; text-align:center; color:var(--text-muted); font-size:13px; }
.meetings-detail-title { font-size:20px; font-weight:800; color:var(--text-primary); margin:0 0 4px; }
.meetings-detail-meta { font-size:12px; color:var(--text-muted); margin-bottom:20px; }
.meetings-tabs { display:flex; gap:2px; border-bottom:1px solid var(--border-color); margin-bottom:16px; }
.meetings-tab { background:none; border:none; color:var(--text-muted); padding:10px 16px; font-size:12px; font-weight:700; cursor:pointer; border-bottom:2px solid transparent; text-transform:uppercase; letter-spacing:0.5px; }
.meetings-tab.active { color:var(--accent-primary); border-bottom-color:var(--accent-primary); }
.meetings-tab-body { color:var(--text-primary); font-size:13px; line-height:1.65; }
.meetings-tab-body pre { background:rgba(0,0,0,0.3); padding:16px; border-radius:10px; white-space:pre-wrap; max-height:540px; overflow-y:auto; font-family:'Inter', sans-serif; font-size:12px; line-height:1.7; }

/* ── Universal button hover/click feedback ── */
button { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease, opacity 0.15s ease; }
button:not(:disabled):hover { filter: brightness(1.12); }
button:not(:disabled):active { transform: scale(0.97); filter: brightness(0.92); }
button:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: 0.5; }

/* Row + tile hover feedback (non-button clickables) */
.cq-call-item { transition: background 0.12s ease, transform 0.08s ease; }
.cq-call-item:hover .cq-call-card { background: #232325 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.cq-call-item:active { transform: scale(0.997); }

/* Scorecard editor categories + criteria nicer feedback */
.sc-category { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.sc-category:hover { border-color: rgba(223,247,104,0.25); }
.sc-criterion { transition: background 0.12s ease; padding: 6px 0; }
.sc-criterion:hover { background: rgba(255,255,255,0.02); }
.sc-input:focus { outline: none; box-shadow: 0 0 0 1px var(--accent-primary); }


/* ── Call Library list item active/inactive states (CSS-driven) ── */
.cq-call-item .cq-call-card {
  background: #1a1a1c;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-left-color 0.15s ease, transform 0.08s ease;
}
.cq-call-item:hover .cq-call-card {
  background: #232327;
  border-left-color: rgba(223, 247, 104, 0.4);
}
.cq-call-item.active .cq-call-card {
  background: #1f1f21;
  border-left-color: var(--accent-primary);
}
.cq-call-item:active .cq-call-card { transform: scale(0.997); }


/* ── Meeting Intelligence (review + edit + fire) ── */
.meetings-stale-banner {
  background: rgba(255, 159, 0, 0.08);
  border: 1px solid rgba(255, 159, 0, 0.3);
  color: #ffb84d;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.12s ease;
}
.meetings-stale-banner:hover { background: rgba(255, 159, 0, 0.14); }

.meetings-upload-btn {
  background: var(--accent-primary, #dff768);
  color: #111;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.meetings-tab-count {
  font-size: 11px;
  color: #888;
  margin-left: 4px;
}

.meetings-action-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.meetings-action-toggle {
  font-size: 12px;
  color: #999;
  cursor: pointer;
  user-select: none;
}
.meetings-action-toggle input { margin-right: 4px; vertical-align: middle; }

.meetings-action-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meeting-action-row {
  background: #1a1a1c;
  border: 1px solid #2a2a2e;
  border-radius: 8px;
  padding: 12px;
  transition: border-color 0.12s ease;
}
.meeting-action-row:hover { border-color: #3a3a3e; }
.meeting-action-row[data-status="rejected"] { opacity: 0.55; }
.meeting-action-row[data-status="rejected"] .meeting-action-desc { text-decoration: line-through; }

.meeting-action-grid {
  display: grid;
  grid-template-columns: 130px 1fr 130px 130px auto auto;
  gap: 8px;
  align-items: center;
}

.meeting-action-input {
  background: #111114;
  border: 1px solid #2a2a2e;
  border-radius: 5px;
  color: #ddd;
  padding: 6px 8px;
  font-size: 12px;
  font-family: inherit;
}
.meeting-action-input:focus { outline: none; border-color: var(--accent-primary, #dff768); }
.meeting-action-desc { width: 100%; }

.meeting-action-status { display: flex; align-items: center; gap: 6px; }

.meeting-action-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.meeting-action-badge.pending { background: #2a2a2e; color: #aaa; }
.meeting-action-badge.fired { background: rgba(79, 158, 56, 0.18); color: #7fc964; }
.meeting-action-badge.synced { background: rgba(100, 181, 246, 0.18); color: #88c4ef; }
.meeting-action-badge.rejected { background: rgba(224, 48, 48, 0.18); color: #e87070; }

.meeting-action-cu-link {
  font-size: 11px;
  color: #88c4ef;
  text-decoration: none;
}
.meeting-action-cu-link:hover { text-decoration: underline; }

.meeting-action-buttons { display: flex; gap: 6px; }

.meeting-action-btn {
  border: none;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.meeting-action-btn.fire { background: var(--accent-primary, #dff768); color: #111; }
.meeting-action-btn.fire:disabled { background: #555; color: #aaa; cursor: wait; }
.meeting-action-btn.reject { background: transparent; color: #e87070; border: 1px solid rgba(224, 48, 48, 0.4); }
.meeting-action-btn.reject:hover { background: rgba(224, 48, 48, 0.12); }

.meeting-action-quote {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-top: 6px;
  padding-left: 8px;
  border-left: 2px solid #2a2a2e;
}

.meeting-action-dedupe {
  background: rgba(255, 159, 0, 0.08);
  border-left: 3px solid #ffb84d;
  color: #ffb84d;
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.meeting-action-dedupe a { color: #ffd58a; text-decoration: underline; }

.meetings-transcript-pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.5;
  color: #bbb;
  background: #111114;
  border-radius: 6px;
  padding: 12px;
  max-height: 600px;
  overflow-y: auto;
}
