
        .admin-tabs {
            display: flex;
            gap: 14px;
            margin: 0 0 22px 0;
            width: 100%;
            }

            .admin-tab {
            flex: 1;
            border: 0;
            border-radius: 14px;
            padding: 16px 14px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            background: #ececef;
            color: #2c3442;
            transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
            }

            .admin-tab:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
            }

            .admin-tab.active {
            background: #2f80ed;
            color: #ffffff;
            }

            .admin-section {
            display: none;
            }

            .admin-section.active {
            display: block;
            }

            @media (max-width: 640px) {
            .admin-tabs {
                flex-direction: column;
            }
            }


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .header {
            text-align: center;
            color: white;
            margin-bottom: 40px;
        }
        
        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }
        
        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
        }
        
        /* Progress Steps */
        .progress-container {
            background: white;
            border-radius: 16px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        }
        
        .steps {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
            position: relative;
        }
        
        .steps::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 3px;
            background: #e9ecef;
            z-index: 1;
            transform: translateY(-50%);
        }
        
        .step {
            background: white;
            border: 3px solid #e9ecef;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #6c757d;
            position: relative;
            z-index: 2;
            transition: all 0.3s ease;
        }
        
        .step.active {
            border-color: #007bff;
            background: #007bff;
            color: white;
            box-shadow: 0 0 20px rgba(0,123,255,0.3);
        }
        
        .step.completed {
            border-color: #28a745;
            background: #28a745;
            color: white;
        }
        
        .step-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
        }
        
        .step-label {
            text-align: center;
            font-weight: 500;
            color: #6c757d;
            flex: 1;
        }
        
        .step-label.active {
            color: #007bff;
            font-weight: 600;
        }
        
        .step-label.completed {
            color: #28a745;
        }
        
        /* Main Content Area */
        .main-content {
            background: white;
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            min-height: 500px;
        }
        
        .step-content {
            display: none;
        }
        
        .step-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .step-title {
            font-size: 1.8rem;
            margin-bottom: 20px;
            color: #2c3e50;
        }
        
        /* Input Section */
        .search-container {
            background: #f8f9fa;
            padding: 25px;
            border-radius: 12px;
            margin-bottom: 25px;
        }

        .step-tabs {
            margin-top: 10px;
        }

        .tab-controls {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .tab-button {
            flex: 1;
            min-width: 200px;
            padding: 12px 18px;
            background: #e9ecef;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            color: #495057;
            cursor: pointer;
            transition: all 0.2s;
        }

        .tab-button.active {
            background: #fff;
            color: #007bff;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            border: 2px solid #007bff;
        }

        .tab-panels {
            background: white;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.08);
            padding: 25px;
        }

        .tab-panel {
            display: none;
        }

        .tab-panel.active {
            display: block;
        }

        .existing-download-panel {
            border: 1px solid #ffe8a1;
            background: #fffdf5;
        }

        .existing-video-controls {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
            margin-bottom: 15px;
        }

        .existing-video-controls select {
            flex: 1;
            min-width: 240px;
            padding: 12px;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            font-size: 14px;
        }

        .existing-download-info {
            background: #fff;
            border: 1px dashed #f0ad4e;
            padding: 15px;
            border-radius: 10px;
            margin-top: 10px;
            display: none;
        }

        .existing-video-title {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 6px;
        }

        .existing-video-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            font-size: 0.9rem;
            color: #6c757d;
            margin-bottom: 8px;
        }

        .existing-video-flags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .badge-success {
            background: #d4edda;
            color: #155724;
        }

        .badge-warning {
            background: #fff3cd;
            color: #856404;
        }

        .badge-info {
            background: #d1ecf1;
            color: #0c5460;
        }

        .badge-secondary {
            background: #e2e3e5;
            color: #41464b;
        }
        
        .search-form {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            align-items: end;
        }
        
        .form-group {
            display: flex;
            flex-direction: column;
            min-width: 120px;
        }
        
        .form-group.flex-1 {
            flex: 1;
            min-width: 300px;
        }
        
        label {
            font-weight: 500;
            margin-bottom: 5px;
            color: #495057;
        }
        
        input[type="text"], input[type="url"], input[type="number"], input[type="password"], select {
            padding: 12px;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.2s;
            background: #fff;
        }
        
        input[type="text"]:focus, input[type="url"]:focus, input[type="number"]:focus, input[type="password"]:focus, select:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
        }

        .children-toolbar {
            display: flex;
            gap: 16px;
            align-items: end;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }

        .children-inline-toggle {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            color: #495057;
            margin-bottom: 10px;
        }

        .child-id-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 999px;
            background: #eef3ff;
            color: #2b4d9a;
            font-weight: 700;
            margin-right: 6px;
            font-size: 0.8rem;
        }
        
        .btn {
            background: #007bff;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }
        
        .btn:hover {
            background: #0056b3;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,123,255,0.3);
        }
        
        .btn-success {
            background: #28a745;
        }
        
        .btn-success:hover {
            background: #1e7e34;
        }
        
        .btn-outline {
            background: transparent;
            border: 2px solid #007bff;
            color: #007bff;
        }
        
        .btn-outline:hover {
            background: #007bff;
            color: white;
        }
        
        /* Status Messages */
        .status-message {
            padding: 15px;
            border-radius: 8px;
            margin: 15px 0;
            font-weight: 500;
        }
        
        .status-info {
            background: #d1ecf1;
            color: #0c5460;
            border: 1px solid #bee5eb;
        }
        
        .status-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .status-error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        /* Process Steps */
        .process-step {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 20px;
            border-left: 4px solid #007bff;
        }

        .video-info-details {
            color: #495057;
            font-size: 0.9rem;
            margin-top: 6px;
        }

        .video-info-flags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
        }
        
        .process-step h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .process-step .icon {
            width: 24px;
            height: 24px;
            background: #007bff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
            font-weight: bold;
        }
        
        /* Questions Results Table (matching your original design) */
        .questions-results {
            margin-top: 30px;
            display: none;
        }

        .results-table-container {
            border: 1px solid #dee2e6;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 20px;
        }

        .results-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
        }

        .results-table th {
            background: #f8f9fa;
            padding: 12px;
            text-align: left;
            font-weight: 600;
            border-bottom: 2px solid #dee2e6;
            color: #495057;
        }

        .results-table td {
            padding: 12px;
            border-bottom: 1px solid #dee2e6;
            vertical-align: top;
        }

        .results-table tr:hover {
            background: #f8f9fa;
        }

        .time-range {
            font-family: monospace;
            background: #e9ecef;
            padding: 4px 8px;
            border-radius: 3px;
            font-weight: bold;
            white-space: nowrap;
        }

        .question-category {
            display: inline-block;
            background: #007bff;
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.8em;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .question-text {
            font-weight: 500;
            margin-bottom: 8px;
            color: #495057;
        }

        .answer-text {
            color: #6c757d;
            font-size: 0.9em;
        }

        .best-question-marker {
            background: #28a745;
            color: white;
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 0.75em;
            font-weight: bold;
            margin-left: 8px;
        }

        .status-processing {
            color: #ffc107;
            font-style: italic;
        }

        .status-completed {
            color: #28a745;
            font-weight: 500;
        }

        .status-error {
            color: #dc3545;
            font-style: italic;
        }

        .error-detail {
            font-size: 0.8em;
            color: #a94442;
            margin-top: 4px;
        }

        .no-results {
            text-align: center;
            padding: 40px 20px;
            color: #6c757d;
            font-style: italic;
        }
        
        /* Navigation */
        .step-navigation {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }
        
        /* Loading States */
        .loading {
            display: none;
            text-align: center;
            padding: 40px;
            color: #6c757d;
        }
        
        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #007bff;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .steps {
                flex-direction: column;
                gap: 20px;
            }
            
            .steps::before {
                display: none;
            }
            
            .search-form {
                flex-direction: column;
            }
            
            .form-group.flex-1 {
                min-width: 100%;
            }
            
            .step-navigation {
                flex-direction: column;
                gap: 15px;
            }
        }

        /* Frame extraction results styling */
        .extraction-details {
            background: #e8f5e8;
            border: 1px solid #d4edda;
            border-radius: 8px;
            padding: 20px;
            margin-top: 15px;
        }

        .extraction-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat-item {
            text-align: center;
            padding: 10px;
            background: white;
            border-radius: 6px;
            border: 1px solid #c3e6cb;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: #155724;
            display: block;
        }

        .stat-label {
            font-size: 0.9rem;
            color: #6c757d;
            margin-top: 5px;
        }

        .files-list {
            margin-top: 15px;
        }

        .files-list h4 {
            color: #155724;
            margin-bottom: 10px;
        }

        .file-item {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            margin-bottom: 5px;
        }

        .file-item:hover {
            background: #f8f9fa;
        }

        .file-icon {
            margin-right: 10px;
            color: #007bff;
        }

        .file-link {
            color: #007bff;
            text-decoration: none;
            flex: 1;
        }

        .file-link:hover {
            text-decoration: underline;
        }

        .download-progress {
            margin: 15px 0;
            display: none;
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            border: 1px solid #dee2e6;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .progress-bar-container {
            width: 100%;
            height: 12px;
            background: #e9ecef;
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 15px;
            border: 1px solid #ccc;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
            width: 0%;
            transition: width 0.5s ease;
            border-radius: 6px;
            position: relative;
        }

        .progress-text {
            font-size: 1rem;
            color: #495057;
            text-align: center;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .progress-details {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
            color: #6c757d;
            margin-top: 8px;
            font-weight: 500;
        }

        /* =====================================================
           Refined UI — Assign Experts + Assign Children tabs
           ===================================================== */

        #assign-experts .main-content,
        #assign-children .main-content {
            padding: 36px 40px;
        }

        /* Section-level heading */
        #assign-experts .main-content > h2,
        #assign-children .main-content > h2 {
            font-size: 1.45rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 4px;
            letter-spacing: -0.01em;
        }

        #assign-experts .main-content > p,
        #assign-children .main-content > p {
            font-size: 0.88rem;
            color: #6b7280;
            margin-bottom: 28px;
        }

        /* Card panels — override gray search-container */
        #assign-experts .search-container,
        #assign-children .search-container {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            padding: 28px 28px 24px;
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
        }

        /* Panel header h3 */
        #assign-experts .search-container > h3,
        #assign-children .search-container > h3 {
            font-size: 0.95rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid #f3f4f6;
            letter-spacing: 0;
        }

        /* Table container */
        #assign-experts .results-table-container,
        #assign-children .results-table-container {
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: none;
        }

        /* Table header */
        #assign-experts .results-table th,
        #assign-children .results-table th {
            background: #f9fafb;
            color: #6b7280;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            padding: 10px 16px;
            border-bottom: 1px solid #e5e7eb;
        }

        /* Table rows */
        #assign-experts .results-table td,
        #assign-children .results-table td {
            padding: 13px 16px;
            border-bottom: 1px solid #f3f4f6;
            font-size: 0.88rem;
            color: #374151;
            vertical-align: middle;
        }

        #assign-experts .results-table tr:last-child td,
        #assign-children .results-table tr:last-child td {
            border-bottom: none;
        }

        #assign-experts .results-table tr:hover td,
        #assign-children .results-table tr:hover td {
            background: #f9fafb;
        }

        /* Smaller inline action buttons in table rows */
        #assign-experts .results-table .btn,
        #assign-children .results-table .btn {
            padding: 6px 14px;
            font-size: 0.8rem;
            border-radius: 7px;
        }

        /* Status badge inside table */
        #assign-experts .results-table .badge,
        #assign-children .results-table .badge {
            font-size: 0.72rem;
            padding: 3px 10px;
        }

        /* Inline text inputs inside table rows (e.g. edit name / new password) */
        #assign-experts .results-table input[type="text"],
        #assign-experts .results-table input[type="password"] {
            padding: 7px 10px;
            font-size: 0.82rem;
            border-radius: 7px;
            border-width: 1px;
        }

        /* Toolbar above children table */
        #assign-children .children-toolbar {
            margin-bottom: 16px;
        }

        /* Form label refinement inside these sections */
        #assign-experts .search-form label,
        #assign-children .search-form label {
            font-size: 0.8rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        /* Refresh / outline button inside toolbar */
        #assign-children #refresh-children-btn,
        #assign-experts #refresh-assignments-btn {
            padding: 8px 18px;
            font-size: 0.85rem;
            border-radius: 8px;
        }

        /* =====================================================
           Admin Cards — refined UI for Experts + Children tabs
           ===================================================== */

        .admin-card {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            padding: 28px 28px 24px;
            margin-bottom: 20px;
            box-shadow: 0 1px 6px rgba(0,0,0,0.05);
        }

        .admin-card-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: #111827;
            margin: 0 0 20px 0;
            letter-spacing: -0.01em;
        }

        .admin-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .admin-card-header .admin-card-title {
            margin-bottom: 0;
        }

        .admin-card-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .admin-control-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: #6b7280;
        }

        .admin-filter-select {
            padding: 6px 10px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            font-size: 0.85rem;
            background: #f9fafb;
            color: #374151;
            cursor: pointer;
        }

        .admin-toggle-label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            font-weight: 500;
            color: #374151;
            cursor: pointer;
        }

        /* Form row */
        .admin-form-row {
            display: flex;
            gap: 14px;
            align-items: flex-end;
            flex-wrap: wrap;
            margin-bottom: 0;
        }

        .admin-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 130px;
        }

        .admin-field.admin-field-grow {
            flex: 1;
        }

        .admin-field.admin-field-btn {
            justify-content: flex-end;
        }

        .admin-field label {
            font-size: 0.78rem;
            font-weight: 600;
            color: #6b7280;
            letter-spacing: 0.02em;
            text-transform: none;
            margin: 0;
        }

        .admin-input {
            background: #f3f4f6;
            border: 1px solid transparent;
            border-radius: 10px;
            padding: 11px 14px;
            font-size: 0.9rem;
            color: #111827;
            transition: border-color 0.15s, box-shadow 0.15s;
            outline: none;
        }

        .admin-input:focus {
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
            background: #fff;
        }

        /* Create button */
        .btn-create {
            background: #22c55e;
            color: #fff;
            border: none;
            border-radius: 10px;
            padding: 11px 20px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s, transform 0.1s;
        }

        .btn-create:hover {
            background: #16a34a;
            transform: translateY(-1px);
        }

        .btn-create.btn-create-sm {
            padding: 7px 14px;
            font-size: 0.82rem;
            border-radius: 8px;
        }

        /* Ghost refresh button */
        .btn-ghost {
            background: transparent;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 6px 12px;
            font-size: 0.85rem;
            font-weight: 500;
            color: #6b7280;
            cursor: pointer;
            transition: background 0.15s;
        }

        .btn-ghost:hover {
            background: #f3f4f6;
            color: #374151;
        }

        /* Table */
        .admin-table-wrap {
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            overflow: hidden;
        }

        .admin-table {
            width: 100%;
            border-collapse: collapse;
            background: #fff;
        }

        .admin-table thead th {
            background: #f9fafb;
            padding: 10px 14px;
            font-size: 0.75rem;
            font-weight: 700;
            color: #6b7280;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            border-bottom: 1px solid #e5e7eb;
            white-space: nowrap;
        }

        .admin-table tbody td {
            padding: 12px 14px;
            font-size: 0.88rem;
            color: #374151;
            border-bottom: 1px solid #f3f4f6;
            vertical-align: middle;
        }

        .admin-table tbody tr:last-child td {
            border-bottom: none;
        }

        .admin-table tbody tr:hover td {
            background: #fafafa;
        }

        /* Cell types */
        .admin-id-cell {
            font-family: 'SF Mono', 'Fira Code', monospace;
            font-size: 0.82rem;
            color: #4b5563;
        }

        .admin-child-id {
            color: #2563eb;
            font-weight: 600;
            font-size: 0.85rem;
        }

        .admin-video-title {
            font-weight: 500;
            max-width: 260px;
        }

        /* Status badge */
        .admin-status-badge {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .admin-status-badge.status-active {
            background: #dcfce7;
            color: #15803d;
        }

        .admin-status-badge.status-inactive {
            background: #f3f4f6;
            color: #6b7280;
        }

        /* Inline inputs inside table */
        .admin-inline-input {
            background: #f3f4f6;
            border: 1px solid transparent;
            border-radius: 8px;
            padding: 6px 10px;
            font-size: 0.85rem;
            color: #111827;
            width: 100%;
            max-width: 160px;
            outline: none;
        }

        .admin-inline-input:focus {
            border-color: #6366f1;
            background: #fff;
        }

        .admin-inline-select {
            background: #f3f4f6;
            border: 1px solid transparent;
            border-radius: 8px;
            padding: 6px 10px;
            font-size: 0.85rem;
            color: #111827;
            outline: none;
            cursor: pointer;
        }

        .admin-inline-select:focus {
            border-color: #6366f1;
        }

        /* Action buttons */
        .admin-actions-cell {
            text-align: right;
            white-space: nowrap;
        }

        .admin-action-btn {
            background: none;
            border: none;
            padding: 5px 8px;
            font-size: 0.82rem;
            font-weight: 600;
            color: #374151;
            cursor: pointer;
            border-radius: 6px;
            transition: background 0.1s;
        }

        .admin-action-btn:hover {
            background: #f3f4f6;
        }

        .admin-action-danger {
            color: #ea580c;
        }

        .admin-action-remove {
            color: #dc2626;
        }

        .admin-action-unlink, .admin-action-link {
            color: #2563eb;
        }

        /* Expert chips */
        .admin-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 6px;
        }

        .admin-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: #eff6ff;
            color: #1d4ed8;
            border-radius: 999px;
            padding: 2px 8px;
            font-size: 0.78rem;
            font-weight: 500;
        }

        .admin-chip-remove {
            background: none;
            border: none;
            color: #1d4ed8;
            cursor: pointer;
            font-size: 0.9rem;
            line-height: 1;
            padding: 0 2px;
        }

        .admin-expert-count {
            cursor: pointer;
            font-size: 0.85rem;
            color: #374151;
            font-weight: 500;
        }

        .admin-table tbody tr.parent-main-row td {
            border-bottom: 0;
        }

        .admin-table tbody tr.parent-videos-inline-row td {
            padding: 6px 14px 16px;
            background: #fff;
            border-bottom: 1px solid #f3f4f6;
        }

        .admin-table tbody tr.parent-videos-inline-row:hover td {
            background: #fff;
        }

        .parent-inline-video-bubble {
            border: 1px solid #d9e2ef;
            border-radius: 12px;
            background: linear-gradient(180deg, #f8fbff 0%, #f6f9ff 100%);
            padding: 12px 14px;
        }

        .parent-inline-video-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 8px;
            color: #0f172a;
            flex-wrap: wrap;
            font-size: 0.95rem;
        }

        .parent-inline-video-count {
            display: inline-block;
            background: #eef2ff;
            color: #4338ca;
            border-radius: 999px;
            padding: 4px 10px;
            font-size: 0.78rem;
            font-weight: 700;
        }

        .parent-inline-video-list {
            margin: 0;
            padding-left: 20px;
            color: #1e293b;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .parent-inline-video-none {
            color: #64748b;
            font-size: 0.9rem;
            font-style: italic;
            padding: 2px 0 4px;
        }

        @media (max-width: 900px) {
            .parent-inline-video-list {
                font-size: 0.9rem;
            }
        }
