* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            padding: 40px 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .header {
            background: white;
            padding: 40px;
            border-radius: 12px 12px 0 0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }

        .header h1 {
            color: #0a66c2;
            margin-bottom: 8px;
        }

        .header p {
            color: #6b7280;
            font-size: 14px;
        }

        .content {
            background: white;
            padding: 40px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            margin-top: -1px;
        }

        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .metric-card {
            background: #f9fafb;
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid #0a66c2;
        }

        .metric-label {
            font-size: 12px;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .metric-value {
            font-size: 24px;
            font-weight: 700;
            color: #0a66c2;
        }

        .metric-subtext {
            font-size: 12px;
            color: #9ca3af;
            margin-top: 4px;
        }

        .warning-banner {
            background: #fef3c7;
            border: 1px solid #fcd34d;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 40px;
            color: #92400e;
        }

        .warning-banner strong {
            display: block;
            margin-bottom: 4px;
        }

        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .team-card {
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            padding: 20px;
            transition: all 0.2s;
        }

        .team-card:hover {
            border-color: #0a66c2;
            box-shadow: 0 8px 24px rgba(10, 102, 194, 0.15);
        }

        .team-card.flagged {
            border-color: #fca5a5;
            background: #fef2f2;
        }

        .member-name {
            font-size: 16px;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 4px;
        }

        .member-role {
            font-size: 13px;
            color: #6b7280;
            margin-bottom: 16px;
        }

        .member-stat {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            margin-bottom: 8px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e5e7eb;
        }

        .member-stat label {
            color: #6b7280;
        }

        .member-stat .value {
            font-weight: 600;
            color: #1f2937;
        }

        .score-bar {
            display: flex;
            gap: 4px;
            margin: 12px 0;
            font-size: 12px;
        }

        .score-bar-item {
            flex: 1;
            height: 6px;
            border-radius: 3px;
            background: #e5e7eb;
            position: relative;
        }

        .score-bar-item.filled {
            background: #0a66c2;
        }

        .red-flags {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid #e5e7eb;
        }

        .flag {
            background: #fee2e2;
            color: #991b1b;
            padding: 6px 10px;
            border-radius: 4px;
            font-size: 12px;
            display: inline-block;
            margin: 4px 4px 4px 0;
            border-left: 3px solid #dc2626;
        }

        .confidence-badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            margin-top: 8px;
        }

        .confidence-badge.high {
            background: #d1fae5;
            color: #065f46;
        }

        .confidence-badge.medium {
            background: #fed7aa;
            color: #92400e;
        }

        .confidence-badge.low {
            background: #fee2e2;
            color: #991b1b;
        }

        .checkbox-group {
            margin-top: 12px;
            padding: 12px;
            background: #f9fafb;
            border-radius: 6px;
        }

        .checkbox-group input[type="checkbox"] {
            margin-right: 8px;
        }

        .checkbox-group label {
            font-size: 13px;
            color: #374151;
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        .actions {
            display: flex;
            gap: 12px;
            margin-top: 40px;
            padding-top: 40px;
            border-top: 1px solid #e5e7eb;
        }

        .btn {
            padding: 12px 28px;
            font-size: 14px;
            font-weight: 600;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-primary {
            background: #0a66c2;
            color: white;
            flex: 1;
        }

        .btn-primary:hover {
            background: #0854a1;
        }

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

        .btn-secondary:hover {
            background: #e5e7eb;
        }

        .override-panel {
            background: #fef3c7;
            border: 1px solid #fcd34d;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
            display: none;
        }

        .override-panel.show {
            display: block;
        }

        .override-panel h3 {
            color: #92400e;
            margin-bottom: 16px;
            font-size: 14px;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 6px;
        }

        .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-family: inherit;
            font-size: 13px;
            min-height: 80px;
            resize: vertical;
        }

        .success-message {
            display: none;
            background: #d1fae5;
            color: #065f46;
            padding: 16px;
            border-radius: 6px;
            margin-bottom: 24px;
            border-left: 4px solid #10b981;
        }

        .success-message.show {
            display: block;
        }

        .loading {
            opacity: 0.6;
            pointer-events: none;
        }

        .status-banner {
            background: #ecfeff;
            border: 1px solid #a5f3fc;
            border-radius: 8px;
            padding: 14px 16px;
            margin-bottom: 24px;
            color: #0e7490;
            font-size: 13.5px;
            line-height: 1.45;
        }

        .status-banner strong {
            display: block;
            margin-bottom: 4px;
            color: #155e75;
        }

        .status-banner a {
            color: #0e7490;
            font-weight: 700;
        }

        .status-banner.is-error {
            background: #fef2f2;
            border-color: #fecaca;
            color: #991b1b;
        }

        .status-banner.is-error strong { color: #7f1d1d; }

        .empty-team {
            grid-column: 1 / -1;
            text-align: center;
            padding: 2.5rem 1.25rem;
            border: 1px dashed #cbd5e1;
            border-radius: 10px;
            color: #64748b;
            background: #f8fafc;
        }

        .empty-team a {
            color: #0a66c2;
            font-weight: 600;
        }

        body {
            padding-top: 0;
        }

        @media (max-width: 768px) {
            .team-grid {
                grid-template-columns: 1fr;
            }

            .metrics-grid {
                grid-template-columns: 1fr;
            }

            .actions {
                flex-direction: column;
            }

            .btn {
                width: 100%;
            }
        }
