
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
            background: #0f172a;
            min-height: 100vh;
            overflow: hidden;
            height: 100vh;
        }

        /* FULL SCREEN LAYOUT - TWO PANELS */
        .app-container {
            display: flex;
            height: 100vh;
            width: 100vw;
            overflow: hidden;
        }

        /* LEFT PANEL: Transcription & Audio Upload */
        .transcript-panel {
            flex: 1.2;
            background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
            border-right: 1px solid rgba(0, 0, 0, 0.05);
        }

        /* RIGHT PANEL: AI Insights & Analysis */
        .insights-panel {
            flex: 0.9;
            background: #ffffff;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            background: #fefefe;
        }

        /* Scrollbar styling */
        .transcript-panel::-webkit-scrollbar, .insights-panel::-webkit-scrollbar {
            width: 6px;
        }
        .transcript-panel::-webkit-scrollbar-track {
            background: #e2e8f0;
            border-radius: 10px;
        }
        .transcript-panel::-webkit-scrollbar-thumb {
            background: #94a3b8;
            border-radius: 10px;
        }
        .insights-panel::-webkit-scrollbar-track {
            background: #e9ecef;
        }
        .insights-panel::-webkit-scrollbar-thumb {
            background: #cbd5e1;
        }

        /* Header Styling */
        .panel-header {
            padding: 24px 28px 16px;
            border-bottom: 1px solid #e2e8f0;
            background: inherit;
            position: sticky;
            top: 0;
            z-index: 10;
            backdrop-filter: blur(2px);
        }
        .panel-header h2 {
            font-size: 1.6rem;
            font-weight: 700;
            background: linear-gradient(135deg, #1e293b, #2d3a4e);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: -0.3px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .panel-header p {
            color: #475569;
            font-size: 0.85rem;
            margin-top: 6px;
        }

        /* API Key Nav Button & Modal */
        .api-key-nav {
            position: absolute;
            top: 24px;
            right: 28px;
            z-index: 20;
        }
        .api-key-btn {
            background: linear-gradient(135deg, #1e293b, #334155);
            border: none;
            padding: 10px 20px;
            border-radius: 40px;
            color: white;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            transition: all 0.2s;
        }
        .api-key-btn:hover {
            transform: translateY(-2px);
            background: linear-gradient(135deg, #0f172a, #1e293b);
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(4px);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .modal-content {
            background: white;
            border-radius: 32px;
            max-width: 480px;
            width: 90%;
            padding: 28px;
            box-shadow: 0 25px 40px rgba(0,0,0,0.2);
            animation: modalFadeIn 0.2s ease;
        }
        @keyframes modalFadeIn {
            from { opacity: 0; transform: scale(0.96); }
            to { opacity: 1; transform: scale(1); }
        }
        .modal-content h3 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 12px;
            color: #0f172a;
        }
        .modal-content p {
            color: #475569;
            margin-bottom: 20px;
            font-size: 0.9rem;
        }
        .api-input {
            width: 100%;
            padding: 14px 18px;
            border: 1.5px solid #e2e8f0;
            border-radius: 60px;
            font-size: 0.9rem;
            margin-bottom: 20px;
            transition: 0.2s;
        }
        .api-input:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
        }
        .modal-buttons {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }
        .modal-btn {
            padding: 10px 20px;
            border-radius: 40px;
            font-weight: 600;
            border: none;
            cursor: pointer;
        }
        .modal-btn-primary {
            background: #0f172a;
            color: white;
        }
        .modal-btn-secondary {
            background: #f1f5f9;
            color: #334155;
        }
        .key-status {
            font-size: 0.75rem;
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .key-status.valid {
            color: #10b981;
        }
        .key-status.invalid {
            color: #ef4444;
        }
        
        /* Upload area & File controls */
        .upload-card {
            margin: 20px 28px;
            background: white;
            border-radius: 28px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.05);
            transition: all 0.2s;
        }
        .upload-area {
            border: 2px dashed #cbd5e1;
            border-radius: 24px;
            padding: 28px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            background: #fefefe;
        }
        .upload-area:hover {
            border-color: #3b82f6;
            background: #f0f9ff;
        }
        .upload-area.dragover {
            background: #eef2ff;
            border-color: #2563eb;
        }
        .upload-icon {
            font-size: 48px;
            margin-bottom: 12px;
        }
        .upload-text {
            font-weight: 600;
            color: #1e293b;
        }
        .upload-hint {
            font-size: 13px;
            color: #64748b;
            margin-top: 6px;
        }
        #audioFile {
            display: none;
        }
        .file-info {
            margin: 16px 20px;
            background: #f1f5f9;
            border-radius: 20px;
            padding: 14px 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .remove-file {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #ef4444;
            transition: transform 0.1s;
        }
        .btn-primary {
            background: linear-gradient(105deg, #1e293b 0%, #0f172a 100%);
            color: white;
            border: none;
            padding: 14px 22px;
            font-weight: 600;
            border-radius: 40px;
            font-size: 1rem;
            cursor: pointer;
            margin: 8px 28px 24px;
            transition: all 0.25s;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }
        .btn-primary:hover:not(:disabled) {
            transform: scale(1.02);
            background: linear-gradient(105deg, #0f172a, #1e293b);
            box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
        }
        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .btn-primary.loading {
            position: relative;
            color: transparent;
        }
        .btn-primary.loading::after {
            content: '';
            width: 20px;
            height: 20px;
            border: 2px solid white;
            border-radius: 50%;
            border-top-color: transparent;
            position: absolute;
            left: 50%;
            top: 50%;
            animation: spin 0.7s linear infinite;
        }
        @keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

        /* SPEAKER 1 & SPEAKER 2 CONVERSATION STYLES - CLASSIC BUBBLE VIEW */
        .transcript-content {
            padding: 0 24px 30px;
        }
        
        .conversation-line {
            margin-bottom: 18px;
            padding: 16px 20px;
            border-radius: 20px;
            transition: all 0.2s ease;
            animation: fadeIn 0.3s ease;
            box-shadow: 0 2px 6px rgba(0,0,0,0.04);
        }
        
        .conversation-line:hover {
            transform: translateX(4px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }
        
        .speaker-1-line {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
            border-left: 5px solid #3b82f6;
        }
        
        .speaker-2-line {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0.02) 100%);
            border-left: 5px solid #8b5cf6;
        }
        
        .timestamp-badge {
            display: inline-flex;
            align-items: center;
            background: rgba(0, 0, 0, 0.06);
            padding: 4px 12px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: 600;
            font-family: 'Monaco', 'Menlo', monospace;
            color: #334155;
            margin-right: 12px;
            letter-spacing: 0.3px;
        }
        
        .speaker-badge-classic {
            display: inline-flex;
            align-items: center;
            padding: 4px 14px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: 700;
            gap: 6px;
        }
        
        .speaker-1-badge {
            background: #3b82f6;
            color: white;
            box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
        }
        
        .speaker-2-badge {
            background: #8b5cf6;
            color: white;
            box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
        }
        
        .message-content-classic {
            margin-top: 12px;
            padding-left: 8px;
            font-size: 0.95rem;
            line-height: 1.5;
            color: #1e293b;
            word-break: break-word;
        }
        
        .compact-line {
            margin-bottom: 12px;
            padding: 10px 12px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            gap: 8px;
        }
        
        .compact-timestamp {
            font-family: monospace;
            font-size: 11px;
            background: #f1f5f9;
            padding: 3px 10px;
            border-radius: 20px;
            color: #475569;
            font-weight: 500;
        }
        
        .compact-speaker-1 {
            font-weight: 800;
            color: #3b82f6;
            background: #eff6ff;
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 12px;
        }
        
        .compact-speaker-2 {
            font-weight: 800;
            color: #8b5cf6;
            background: #f5f0ff;
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 12px;
        }
        
        .compact-message {
            color: #334155;
            flex: 1;
            font-size: 0.9rem;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .speaker-mini-stats {
            display: flex;
            gap: 20px;
            margin: 15px 24px 10px;
            padding: 12px 18px;
            background: white;
            border-radius: 60px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        
        .stat-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 500;
        }
        
        .stat-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }
        
        .stat-dot.speaker1-dot { background: #3b82f6; box-shadow: 0 0 0 2px #dbeafe; }
        .stat-dot.speaker2-dot { background: #8b5cf6; box-shadow: 0 0 0 2px #ede9fe; }
        
        .empty-state {
            text-align: center;
            padding: 48px 20px;
            color: #94a3b8;
        }
        
        /* RIGHT PANEL INSIGHTS */
        .insight-card {
            background: white;
            margin: 20px 24px;
            border-radius: 28px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
            border: 1px solid #edf2f7;
            overflow: hidden;
        }
        .insight-title {
            font-size: 1.2rem;
            font-weight: 700;
            padding: 18px 24px 8px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 2px solid #f1f5f9;
        }
        .insight-body {
            padding: 18px 24px 24px;
        }
        .intent-text {
            background: #eef2ff;
            padding: 16px 20px;
            border-radius: 24px;
            color: #1e293b;
            font-weight: 500;
            line-height: 1.4;
            margin: 12px 0;
        }
        .mistake-item, .suggestion-item, .tip-item {
            padding: 12px 0 12px 28px;
            border-bottom: 1px solid #f1f5f9;
            position: relative;
            font-size: 0.9rem;
        }
        .mistake-item::before {
            content: "⚠️";
            position: absolute;
            left: 0;
            color: #e11d48;
        }
        .suggestion-item::before {
            content: "💡";
            position: absolute;
            left: 0;
        }
        .tip-item::before {
            content: "✨";
            position: absolute;
            left: 0;
        }
        .copy-btn-insight {
            background: none;
            border: 1px solid #cbd5e1;
            border-radius: 32px;
            padding: 8px 18px;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
        }
        .copy-btn-insight:hover {
            background: #1e293b;
            color: white;
            border-color: #1e293b;
        }
        .error-message {
            background: #fee2e2;
            color: #b91c1c;
            padding: 12px 20px;
            border-radius: 32px;
            margin: 0 24px 20px;
            font-size: 0.85rem;
        }
        .view-toggle {
            display: flex;
            gap: 12px;
            margin: 10px 24px;
        }
        .toggle-btn {
            background: white;
            border: 1px solid #cbd5e1;
            padding: 8px 20px;
            border-radius: 40px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .toggle-btn.active {
            background: #1e293b;
            color: white;
            border-color: #1e293b;
        }
         @media (max-width: 780px) {
            .app-container { flex-direction: column; }
            .transcript-panel, .insights-panel { flex: auto; height: 50vh; overflow-y: auto; }
            body { overflow: auto; }
            .api-key-nav { top: 12px; right: 16px; }
            .api-key-btn { padding: 6px 14px; font-size: 0.75rem; }
        }