/* prompt.html — page-specific styles */

:root {
            --bg: #0d0f14;
            --surface: #13161e;
            --surface2: #1a1e2a;
            --surface3: #222636;
            --border: #2a2f42;
            --border2: #353b54;
            --accent: #4f8ef7;
            --accent2: #3a6fd8;
            --text: #e2e5f0;
            --text2: #8892b0;
            --text3: #5a6380;
            --score-hi: #4ade80;
            --score-med: #fbbf24;
            --score-lo: #f87171;
            --mono: 'IBM Plex Mono', monospace;
            --sans: 'IBM Plex Sans', sans-serif;
        }

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

        body {
            font-family: var(--sans), -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg);
            min-height: 100vh;
            color: var(--text);
            line-height: 1.6;
            font-size: 13px;
        }

        code, pre, .mono { font-family: var(--mono); }

        .app-container {
            display: flex;
            min-height: 100vh;
        }

        /* Sidebar with Modern Design */
        .sidebar {
            width: 280px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 24px 0;
            box-shadow: 2px 0 25px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
            overflow-y: auto;
        }

        .sidebar.collapsed {
            width: 80px;
        }

        .header-buttons {
            margin-top: 16px;
        }

        .header-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            color: #a1a1aa;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.3s ease;
            width: 100%;
        }

        .header-btn:hover {
            background: rgba(59, 130, 246, 0.2);
            border-color: #3b82f6;
            color: #3b82f6;
        }

        .header-btn .material-icons {
            font-size: 18px;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 20px;
            font-weight: 600;
            color: white;
            background: linear-gradient(135deg, #f97316, #fb923c);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .logo img {
            height: 32px;
        }

        .logo .material-icons {
            margin-right: 12px;
            font-size: 28px;
        }

        /* Navigation Items with Modern Styling */
        .nav-item {
            display: flex;
            align-items: center;
            padding: 12px 24px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            background: none;
            color: white;
            width: 100%;
            text-align: left;
            position: relative;
            border-radius: 0 25px 25px 0;
            margin: 4px 0;
            font-size: 14px;
            font-family: inherit;
        }

        .nav-item.section-header {
            background: rgba(59, 130, 246, 0.2);
            border-left: 4px solid #3b82f6;
            color: #d1d5db;
            font-weight: 600;
            margin: 8px 0 4px 0;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
        }

        .nav-item.active-page {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
            border-left: 4px solid #8b5cf6;
            color: white;
            font-weight: 500;
            box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
        }

        .nav-item .material-icons {
            margin-right: 12px;
            font-size: 20px;
            transition: all 0.3s ease;
            flex-shrink: 0;
            color: inherit;
        }

        .sidebar.collapsed .nav-text {
            display: none;
        }

        .sidebar.collapsed .expand-icon {
            display: none;
        }

        .nav-text {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
        }

        .expand-icon {
            margin-left: auto;
            transition: transform 0.3s ease;
            font-size: 18px;
            flex-shrink: 0;
        }

        .nav-item.section-header.expanded .expand-icon {
            transform: rotate(90deg);
        }

        .nav-item.section-header.expanded {
            background: #304661;
        }

        /* AI Agent Decision button expanded state */
        .nav-item.expanded {
            background: #304661;
        }

        .nav-item.expanded .expand-icon {
            transform: rotate(90deg);
        }

        /* Sub-navigation with Modern Design */
        .nav-subitems {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background: #304661;
            backdrop-filter: blur(10px);
        }

        .nav-subitems.expanded {
            max-height: 1000px;
        }

        .sidebar.collapsed .nav-subitems {
            display: none;
        }

        .nav-subitems .nav-item {
            background: transparent;
            padding-left: 52px;
            font-weight: 400;
            margin: 2px 0;
        }

        .nav-subitems .nav-item:hover {
            background: rgba(255,255,255,0.1);
            transform: translateX(8px);
        }

        .nav-subitems .nav-item.active-page {
            background: rgba(139, 92, 246, 0.2);
            border-left: 3px solid #8b5cf6;
        }

        /* Main Content with Modern Styling */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: rgba(255,255,255,0.02);
            overflow-y: auto;
        }

        .header {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 20px 32px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .header-left {
            display: flex;
            align-items: center;
        }

        .header-title {
            font-size: 26px;
            font-weight: 700;
            margin-left: 20px;
            background: linear-gradient(135deg, #f97316, #fb923c);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .header-title.copy-on-click {
            cursor: pointer;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .user-avatar {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: linear-gradient(135deg,#3b82f6,#8b5cf6);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 700;
            color: white;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
            }
        }

        /* Content Area with Modern Cards */
        .content {
            padding: 32px;
            flex: 1;
            overflow-y: auto;
        }

        .card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.2);
            margin-bottom: 32px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.3);
            border-color: rgba(255,255,255,0.15);
        }

        .card-header {
            padding: 32px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
        }

        .card-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 12px;
            color: #f8fafc;
        }

        .card-subtitle {
            color: #a1a1aa;
            font-size: 16px;
            font-weight: 400;
        }

        .card-content {
            padding: 32px;
        }

        /* Modern Input Styling */
        .prompt-input {
            width: 100%;
            min-height: 140px;
            padding: 20px;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            font-family: 'Inter', sans-serif;
            font-size: 16px;
            color: #f8fafc;
            resize: vertical;
            transition: all 0.3s ease;
        }

        .prompt-input:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
            background: rgba(0, 0, 0, 0.4);
        }

        .prompt-input-wrap {
            position: relative;
        }

        .prompt-input.has-voice {
            padding-right: 72px;
        }

        .prompt-voice-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 44px;
            height: 44px;
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 12px;
            background: rgba(255,255,255,0.06);
            color: #e4e4e7;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.25s ease;
            z-index: 2;
        }

        .prompt-voice-btn:hover {
            background: rgba(59,130,246,0.18);
            border-color: rgba(59,130,246,0.45);
            color: #fff;
            box-shadow: 0 10px 20px rgba(59,130,246,0.18);
            transform: translateY(-1px);
        }

        .prompt-voice-btn .material-icons {
            font-size: 22px;
        }

        /* Inline Voice Transcription Bar */
        .voice-inline-bar {
            display: none;
            margin-top: 10px;
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(59, 130, 246, 0.35);
            border-radius: 14px;
            padding: 12px 16px;
            animation: voiceBarSlideIn 0.3s ease;
        }

        .voice-inline-bar.active {
            display: block;
        }

        .voice-inline-bar.recording {
            border-color: rgba(239, 68, 68, 0.5);
            box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
        }

        @keyframes voiceBarSlideIn {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .voice-bar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .voice-bar-status {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: #94a3b8;
        }

        .voice-bar-status .voice-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #64748b;
        }

        .voice-inline-bar.recording .voice-dot {
            background: #ef4444;
            box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
            animation: voiceDotPulse 1.2s infinite;
        }

        @keyframes voiceDotPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        .voice-bar-close {
            background: none;
            border: none;
            color: #71717a;
            cursor: pointer;
            padding: 2px;
            display: flex;
            align-items: center;
            transition: color 0.2s;
        }

        .voice-bar-close:hover {
            color: #ef4444;
        }

        .voice-bar-close .material-icons {
            font-size: 18px;
        }

        .voice-bar-transcript {
            width: 100%;
            min-height: 60px;
            max-height: 120px;
            resize: vertical;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
            color: #f8fafc;
            font-family: inherit;
            font-size: 14px;
            line-height: 1.5;
            outline: none;
        }

        .voice-bar-transcript:focus {
            border-color: rgba(59, 130, 246, 0.5);
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
        }

        .voice-bar-transcript::placeholder {
            color: #52525b;
        }

        .voice-bar-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
        }

        .voice-bar-btn {
            padding: 7px 16px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-family: inherit;
        }

        .voice-bar-btn.use {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
        }

        .voice-bar-btn.use:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
        }

        .voice-bar-btn.clear {
            background: rgba(255, 255, 255, 0.06);
            color: #a1a1aa;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .voice-bar-btn.clear:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #e4e4e7;
        }

        .prompt-voice-btn.recording {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(249, 115, 22, 0.3));
            border-color: rgba(239, 68, 68, 0.5);
            color: #ef4444;
            animation: pulseRecording 1.4s infinite;
        }

        @keyframes pulseRecording {
            0% { transform: scale(1); }
            50% { transform: scale(1.06); }
            100% { transform: scale(1); }
        }

        .input-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
        }

        .char-count {
            color: #a1a1aa;
            font-size: 14px;
        }

        /* Modern Button Styling */
        .btn {
            padding: 16px 32px;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 16px;
            min-width: 200px;
            height: 56px;
            justify-content: center;
        }

        /* Icon Button Styling */
        .icon-btn {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 16px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 56px;
            height: 56px;
            margin-right: 12px;
        }

        .icon-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .icon-btn .material-icons {
            font-size: 24px;
        }

        /* Context Filter Checkbox Styling */
        .context-filter-checkbox {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            padding: 10px;
            border-radius: 8px;
        }

        .context-filter-checkbox:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .context-filter-checkbox input[type="checkbox"] {
            margin-right: 12px;
            width: 18px;
            height: 18px;
            accent-color: #3b82f6;
        }

        .context-filter-checkbox label {
            color: #f8fafc;
            font-size: 14px;
            cursor: pointer;
            flex: 1;
        }

        .context-filter-section-title {
            font-weight: 600;
            color: #3b82f6;
            margin-bottom: 16px;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .prompt-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 20px;
        }

        /* Optimization Modal Styling */
        .optimization-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
        }

        .optimization-modal-content {
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            margin: 5% auto;
            padding: 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            width: 80%;
            max-width: 800px;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        }

        .optimization-modal-header {
            padding: 24px 32px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .optimization-modal-title {
            color: #f8fafc;
            font-size: 24px;
            font-weight: 700;
            margin: 0;
        }

        .optimization-modal-close {
            color: #a1a1aa;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s ease;
            background: none;
            border: none;
            padding: 8px;
            border-radius: 8px;
        }

        .optimization-modal-close:hover {
            color: #f8fafc;
            background: rgba(255, 255, 255, 0.1);
        }

        .optimization-modal-body {
            padding: 32px;
        }

        .optimization-practice {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            transition: all 0.3s ease;
        }

        .optimization-practice:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .optimization-practice-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .optimization-practice-title {
            color: #3b82f6;
            font-size: 18px;
            font-weight: 600;
            margin: 0;
            flex: 1;
        }

        .optimization-practice-select {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-left: 12px;
        }

        .optimization-practice-select:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }

        .optimization-practice-select.selected {
            background: linear-gradient(135deg, #10b981, #059669);
        }

        .optimization-practice-content {
            color: #f8fafc;
            font-size: 14px;
            line-height: 1.6;
            margin: 0;
        }

        .optimization-modal-footer {
            padding: 24px 32px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }

        .optimization-modal-btn {
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
        }

        .optimization-modal-btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: #a1a1aa;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .optimization-modal-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #f8fafc;
        }

        .optimization-modal-btn-primary {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
        }

        .optimization-modal-btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }

        /* Industry Selection Styling */
        .industry-selection {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-top: 20px;
        }

        .industry-checkbox {
            display: flex;
            align-items: center;
            padding: 16px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .industry-checkbox:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(59, 130, 246, 0.3);
        }

        .industry-checkbox input[type="checkbox"] {
            margin-right: 12px;
            width: 18px;
            height: 18px;
            accent-color: #3b82f6;
        }

        .industry-checkbox label {
            color: #f8fafc;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            flex: 1;
        }

        .industry-checkbox input[type="checkbox"]:checked + label {
            color: #3b82f6;
            font-weight: 600;
        }

        .btn-primary {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }

        .btn-primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
        }

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-1px);
        }

        /* Modern Prompt Options */
        .prompt-option {
            padding: 20px;
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 16px;
            position: relative;
            overflow: hidden;
        }

        .prompt-option:hover {
            background: rgba(59, 130, 246, 0.1);
            border-color: #3b82f6;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
        }

        .prompt-option::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #3b82f6, #8b5cf6);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .prompt-option:hover::before {
            opacity: 1;
        }

        /* Modern Platform Grid */
        .platform-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 20px;
        }

        .platform-card {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 24px;
            transition: all 0.3s ease;
            border-left: 4px solid #10b981;
        }

        .platform-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .platform-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .platform-name {
            font-weight: 600;
            font-size: 18px;
            color: #f8fafc;
        }

        .confidence-score {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
            color: #10b981;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        /* Modern Systems Grid */
        .systems-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        .system-card {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 20px;
            transition: all 0.3s ease;
        }

        .system-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .system-header {
            display: flex;
            align-items: center;
            margin-bottom: 16px;
        }

        .system-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 16px;
            color: white;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
        }

        .system-icon.crm { background: linear-gradient(135deg, #ff5722, #f4511e); }
        .system-icon.enterprise { background: linear-gradient(135deg, #3f51b5, #303f9f); }
        .system-icon.financial { background: linear-gradient(135deg, #4caf50, #388e3c); }
        .system-icon.communication { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }
        .system-icon.email { background: linear-gradient(135deg, #ff9800, #f57c00); }
        .system-icon.documentation { background: linear-gradient(135deg, #607d8b, #455a64); }

        /* Modern Priority Controls */
        .priority-controls {
            display: flex;
            gap: 16px;
            margin-bottom: 32px;
            flex-wrap: wrap;
        }

        .priority-filter {
            padding: 12px 24px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 25px;
            color: #a1a1aa;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .priority-filter.active {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            border-color: transparent;
            color: white;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }

        .priority-filter:hover:not(.active) {
            background: rgba(255, 255, 255, 0.1);
            border-color: #3b82f6;
            color: #3b82f6;
        }

        /* Modern Priority Items */
        .priority-item {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 28px;
            margin-bottom: 20px;
            border-left: 4px solid #3b82f6;
            transition: all 0.3s ease;
        }

        .priority-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        }

        .priority-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
        }

        .priority-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #f8fafc;
        }

        .priority-score {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
            padding: 12px 20px;
            border-radius: 25px;
            font-weight: 600;
            font-size: 20px;
            min-width: 80px;
            text-align: center;
        }

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

        .metric {
            text-align: center;
            background: rgba(0, 0, 0, 0.2);
            padding: 16px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .metric-value {
            font-size: 22px;
            font-weight: 600;
            color: #3b82f6;
            margin-bottom: 4px;
        }

        .metric-label {
            font-size: 12px;
            color: #a1a1aa;
            font-weight: 500;
        }

        /* Framework Details */
        .framework-details {
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 20px;
            margin-top: 20px;
        }

        .framework-title {
            font-weight: 600;
            margin-bottom: 16px;
            color: #3b82f6;
            font-size: 16px;
        }

        .framework-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
        }

        .framework-item {
            background: rgba(255, 255, 255, 0.05);
            padding: 16px;
            border-radius: 8px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Loading States */
        .loading {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 60px;
            color: #a1a1aa;
        }

        .spinner {
            width: 32px;
            height: 32px;
            border: 3px solid rgba(59, 130, 246, 0.3);
            border-top: 3px solid #3b82f6;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 16px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Fade-in used when the pill flips into "Results ready". */
        @keyframes resultsCompleteFadeIn {
            from { opacity: 0; transform: translateY(-6px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* Vibrate + pulse-glow effect used by the "Working..." recommend-panel
           pill to make it highly visible until "Results ready" appears. */
        @keyframes recommendWorkingVibrate {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            10%      { transform: translate(-1.5px, 1px) rotate(-0.6deg); }
            20%      { transform: translate(1.5px, -1px) rotate(0.6deg); }
            30%      { transform: translate(-1.5px, -1px) rotate(-0.6deg); }
            40%      { transform: translate(1.5px, 1px) rotate(0.6deg); }
            50%      { transform: translate(-1px, 1.5px) rotate(-0.4deg); }
            60%      { transform: translate(1px, -1.5px) rotate(0.4deg); }
            70%      { transform: translate(-1.5px, 0.5px) rotate(-0.6deg); }
            80%      { transform: translate(1.5px, -0.5px) rotate(0.6deg); }
            90%      { transform: translate(-1px, 1px) rotate(-0.4deg); }
        }

        @keyframes recommendWorkingGlow {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6),
                            0 0 14px 2px rgba(34, 197, 94, 0.4);
                background: rgba(34, 197, 94, 0.55);
                border-color: rgba(34, 197, 94, 0.85);
            }
            50% {
                box-shadow: 0 0 0 6px rgba(34, 197, 94, 0),
                            0 0 30px 8px rgba(34, 197, 94, 0.8);
                background: rgba(34, 197, 94, 0.85);
                border-color: rgba(187, 247, 208, 1);
            }
        }

        #recommendCompleteIndicator.is-working {
            animation: recommendWorkingVibrate 0.55s linear infinite,
                       recommendWorkingGlow 1.2s ease-in-out infinite !important;
            font-size: 13px !important;
            padding: 6px 14px !important;
            font-weight: 700 !important;
            color: #ffffff !important;
            letter-spacing: 0.3px;
            text-shadow: 0 0 8px rgba(22, 101, 52, 0.85);
        }

        #recommendCompleteIndicator.is-working .material-icons-outlined {
            font-size: 16px !important;
            color: #ffffff !important;
            filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.85));
            animation: spin 0.9s linear infinite !important;
        }

        /* Hidden class */
        .hidden {
            display: none;
        }

        /* AI Agent Interface Styles */
        .ai-agent-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
            min-height: 600px;
            margin-bottom: 32px;
        }

        .prompt-panel {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 24px;
            display: flex;
            flex-direction: column;
        }

        .prompt-actions {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
        }

        .prompt-templates {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            margin-top: 16px;
        }

        /* Response Panel */
        .response-panel {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 24px;
            display: flex;
            flex-direction: column;
        }

        .response-content {
            flex: 1;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 12px;
            padding: 20px;
            overflow-y: auto;
            margin-bottom: 16px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .response-content:empty::before {
            content: "AI Agent will respond here...";
            color: #71717a;
            font-style: italic;
        }

        .response-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }

        /* Compact 3x2 grid for the prompt results action row */
        .response-actions.compact-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            justify-content: stretch;
            margin-top: 12px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 12px;
        }
        .response-actions.compact-grid .btn {
            width: 100%;
            padding: 10px 12px;
            font-size: 14px;
            font-weight: 600;
            line-height: 1.25;
            letter-spacing: 0.01em;
            gap: 8px;
            min-height: 42px;
            border-radius: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            justify-content: center;
        }
        .response-actions.compact-grid .btn .material-icons {
            font-size: 19px;
            flex-shrink: 0;
        }
        .response-actions.compact-grid .btn .btn-label {
            font-size: 14px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .response-actions.compact-grid .btn-primary {
            box-shadow: 0 0 0 1px rgba(79, 142, 247, 0.3);
        }
        @media (max-width: 720px) {
            .response-actions.compact-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        /* Claude API key bar */
        .claude-api-bar {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .claude-api-bar label {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.6);
            white-space: nowrap;
        }
        .claude-api-bar input {
            flex: 1;
            min-width: 180px;
            background: rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            color: #e4e4e7;
            padding: 8px 12px;
            font-size: 13px;
        }
        .claude-api-bar input:focus {
            border-color: #8b5cf6;
            outline: none;
        }
        .claude-api-bar input::placeholder {
            color: rgba(255,255,255,0.35);
        }
        .claude-api-bar button {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 14px;
            font-size: 13px;
            cursor: pointer;
        }
        .claude-api-bar button:hover { opacity: 0.9; }
        .claude-api-bar button.connected {
            background: linear-gradient(135deg, #059669, #10b981);
        }
        .claude-api-bar.hidden {
            display: none !important;
        }
        .response-content .claude-stream-text { white-space: pre-wrap; word-break: break-word; }
        .response-content.loading-dots::after {
            content: '';
            animation: claude-dots 1.5s steps(4, end) infinite;
        }
        @keyframes claude-dots {
            0%, 20% { content: '.'; }
            40% { content: '..'; }
            60%, 100% { content: '...'; }
        }
        .response-content .error-text { color: #f87171; }
        .error-toast {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            padding: 12px 24px;
            border-radius: 12px;
            border: 1px solid;
            font-size: 14px;
            z-index: 10000;
            box-shadow: 0 8px 32px rgba(0,0,0,0.4);
        }

        /* Decision Intelligence Features */
        .decision-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 24px;
            margin-top: 32px;
            flex-shrink: 0;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 24px;
            transition: all 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        .decision-confidence-card,
        .decision-timeline-card,
        .roi-projection-card,
        .stakeholder-impact-card {
            position: relative;
        }

        .feature-card-refresh {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.7);
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.2s, color 0.2s, transform 0.2s;
        }

        .feature-card-refresh:hover {
            background: rgba(255, 255, 255, 0.15);
            color: white;
        }

        .feature-card-refresh:active {
            transform: scale(0.95);
        }

        .feature-card-refresh .material-icons {
            font-size: 20px;
        }

        .feature-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .feature-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
        }

        .feature-title {
            font-size: 18px;
            font-weight: 600;
            color: white;
        }

        .feature-description {
            color: #a1a1aa;
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 16px;
        }

        .feature-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .stat-item {
            background: rgba(0, 0, 0, 0.2);
            padding: 12px;
            border-radius: 8px;
            text-align: center;
        }

        .stat-value {
            font-size: 20px;
            font-weight: 700;
            color: #3b82f6;
        }

        .stat-label {
            font-size: 12px;
            color: #71717a;
            margin-top: 4px;
        }

        /* Enhanced Typography */
        .ai-response {
            line-height: 1.8;
            color: #e4e4e7;
        }

        .ai-response h1, .ai-response h3 {
            color: #3b82f6;
            margin: 20px 0 12px 0;
        }
        .ai-response h2 {
            font-weight: 700;
            color: #3b82f6;
            margin: 20px 0 12px 0;
        }
        .response-title-link {
            color: inherit;
            text-decoration: none;
            cursor: pointer;
            border-bottom: 1px solid transparent;
        }
        .response-title-link:hover {
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        /* Outcome results (AI prompt response): orange headers, white text, bullets */
        .response-content .ai-response.outcome-results {
            color: #ffffff;
        }
        .response-content .ai-response.outcome-results h1 {
            color: #f97316;
            font-weight: 600;
            margin: 20px 0 12px 0;
            border-bottom: 1px solid rgba(249, 115, 22, 0.3);
            padding-bottom: 8px;
        }
        .response-content .ai-response.outcome-results h2 {
            color: #3b82f6;
            font-weight: 700;
            margin: 20px 0 12px 0;
            border-bottom: 1px solid rgba(59, 130, 246, 0.3);
            padding-bottom: 8px;
        }
        .response-content .ai-response.outcome-results h3,
        .response-content .ai-response .outcome-header {
            color: #3b82f6;
            font-weight: 700;
            margin: 20px 0 12px 0;
            border-bottom: 1px solid rgba(59, 130, 246, 0.3);
            padding-bottom: 8px;
        }
        .response-content .ai-response.outcome-results p,
        .response-content .ai-response.outcome-results li,
        .response-content .ai-response.outcome-results .claude-stream-text {
            color: #ffffff;
        }
        .response-content .ai-response.outcome-results ul,
        .response-content .ai-response.outcome-results ol {
            padding-left: 24px;
            margin: 12px 0;
        }
        .response-content .ai-response.outcome-results ul li {
            list-style-type: disc;
            list-style-position: outside;
        }
        .response-content .ai-response.outcome-results ul li::marker {
            color: #3b82f6;
        }
        .response-content .ai-response.outcome-results ol li {
            list-style-type: decimal;
        }

        /* ── Results Coach Mark / Onboarding Tip ── */
        .results-coach-mark {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 14px 18px;
            margin-bottom: 16px;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.08));
            border: 1px solid rgba(59, 130, 246, 0.25);
            border-radius: 12px;
            animation: coachMarkFadeIn 0.5s ease;
        }
        .results-coach-mark .coach-icon {
            flex-shrink: 0;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: rgba(59, 130, 246, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .results-coach-mark .coach-icon .material-icons {
            font-size: 20px;
            color: #60a5fa;
        }
        .results-coach-mark .coach-text {
            flex: 1;
        }
        .results-coach-mark .coach-text strong {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #e4e4e7;
            margin-bottom: 4px;
        }
        .results-coach-mark .coach-text span {
            font-size: 13px;
            color: #94a3b8;
            line-height: 1.5;
        }
        .results-coach-mark .coach-dismiss {
            flex-shrink: 0;
            background: none;
            border: none;
            color: #64748b;
            cursor: pointer;
            padding: 2px;
            display: flex;
            align-items: center;
            transition: color 0.2s;
        }
        .results-coach-mark .coach-dismiss:hover {
            color: #e4e4e7;
        }
        @keyframes coachMarkFadeIn {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ── Selectable Outcome Sections (click-to-highlight, no checkbox) ── */
        .outcome-section-wrap {
            position: relative;
            padding: 12px 16px 12px 18px;
            border-left: 3px solid transparent;
            border-radius: 0 10px 10px 0;
            margin: 6px 0;
            transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
            cursor: pointer;
        }
        .outcome-section-wrap:hover {
            border-left-color: rgba(59, 130, 246, 0.4);
            background: rgba(59, 130, 246, 0.05);
        }
        .outcome-section-wrap:hover .section-hover-hint {
            opacity: 1;
            transform: translateY(0);
        }
        /* Whole-section selection = blue highlight */
        .outcome-section-wrap.selected-section {
            border-left-color: #3b82f6;
            background: rgba(59, 130, 246, 0.12);
            box-shadow: 0 2px 14px rgba(59, 130, 246, 0.16);
        }
        .outcome-section-wrap.first-section-hint {
            animation: sectionHintPulse 2s ease 0.8s 2;
        }
        @keyframes sectionHintPulse {
            0%, 100% { border-left-color: transparent; background: transparent; }
            50% { border-left-color: rgba(59, 130, 246, 0.5); background: rgba(59, 130, 246, 0.06); }
        }

        /* Per-item (sub-specific) selectability inside a section */
        .outcome-item {
            position: relative;
            padding: 4px 10px 4px 12px;
            margin: 2px -6px;
            border-left: 2px solid transparent;
            border-radius: 6px;
            transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
            cursor: pointer;
        }
        .outcome-item:hover {
            background: rgba(139, 92, 246, 0.08);
            border-left-color: rgba(139, 92, 246, 0.4);
        }
        /* Item selection = purple highlight (deeper drill-down) */
        .outcome-item.selected-item {
            background: rgba(139, 92, 246, 0.16);
            border-left-color: #a78bfa;
            box-shadow: 0 2px 10px rgba(139, 92, 246, 0.18);
        }
        .outcome-item.selected-item::after {
            content: 'selected';
            position: absolute;
            right: 8px;
            top: 4px;
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #c4b5fd;
            background: rgba(139, 92, 246, 0.22);
            padding: 2px 6px;
            border-radius: 4px;
        }
        /* Dim the parent section highlight when a sub-item is being drilled */
        .outcome-section-wrap.has-item-selected {
            border-left-color: rgba(139, 92, 246, 0.3);
            background: rgba(139, 92, 246, 0.04);
        }

        /* Hover hint label (per section) */
        .section-hover-hint {
            position: absolute;
            right: 12px;
            top: 12px;
            font-size: 11px;
            font-weight: 600;
            color: #60a5fa;
            background: rgba(59, 130, 246, 0.12);
            padding: 4px 10px;
            border-radius: 6px;
            opacity: 0;
            transform: translateY(-4px);
            transition: opacity 0.25s, transform 0.25s;
            pointer-events: none;
            white-space: nowrap;
        }
        .outcome-section-wrap.selected-section .section-hover-hint {
            opacity: 1;
            transform: translateY(0);
            color: #93c5fd;
            background: rgba(59, 130, 246, 0.2);
        }

        /* Deep-dive action bar */
        .re-evaluate-bar {
            display: none;
            align-items: center;
            gap: 12px;
            padding: 14px 18px;
            margin-top: 14px;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08));
            border: 1px solid rgba(59, 130, 246, 0.35);
            border-radius: 12px;
            animation: reEvalBarSlideIn 0.3s ease;
            flex-wrap: wrap;
        }
        .re-evaluate-bar.visible {
            display: flex;
        }
        .re-evaluate-bar.scope-item {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(59, 130, 246, 0.08));
            border-color: rgba(139, 92, 246, 0.4);
        }
        @keyframes reEvalBarSlideIn {
            from { opacity: 0; transform: translateY(-6px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .re-evaluate-bar .re-eval-scope-label {
            font-size: 13px;
            color: #e4e4e7;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .re-evaluate-bar .re-eval-scope-label .badge {
            background: rgba(59, 130, 246, 0.22);
            color: #93c5fd;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .re-evaluate-bar.scope-item .re-eval-scope-label .badge {
            background: rgba(139, 92, 246, 0.25);
            color: #c4b5fd;
        }
        .re-evaluate-bar .re-eval-target {
            font-size: 12px;
            color: #a1a1aa;
            max-width: 340px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .re-evaluate-bar .re-eval-hint {
            font-size: 11.5px;
            color: #71717a;
        }
        .re-eval-clear-btn {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.15);
            color: #d4d4d8;
            font-size: 12px;
            padding: 6px 10px;
            border-radius: 8px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        .re-eval-clear-btn:hover { background: rgba(255,255,255,0.12); }

        /* ── Comparative Analysis / Alternate Recommendation ── */
        .prompt-compare-controls {
            display: none;
            align-items: center;
            gap: 12px;
            padding: 10px 16px;
            margin-top: 12px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            flex-wrap: wrap;
        }
        .prompt-compare-controls.visible {
            display: flex;
        }
        .prompt-compare-controls label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #a1a1aa;
            cursor: pointer;
        }
        .prompt-compare-controls label:hover {
            color: #e4e4e7;
        }
        .prompt-compare-controls input[type="radio"] {
            accent-color: #3b82f6;
        }
        .prompt-compare-container {
            display: flex;
            gap: 16px;
            margin-top: 12px;
        }
        .prompt-compare-pane {
            flex: 1;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            padding: 16px;
            overflow-y: auto;
            max-height: 600px;
        }
        .prompt-compare-pane-header {
            font-size: 14px;
            font-weight: 700;
            color: #3b82f6;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(59, 130, 246, 0.2);
        }
        .prompt-compare-recommend .prompt-compare-pane-header {
            color: #8b5cf6;
            border-bottom-color: rgba(139, 92, 246, 0.2);
        }
        .prompt-compare-pane.pane-selected {
            border-color: rgba(59, 130, 246, 0.5);
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
        }
        .btn-select-result {
            margin-top: 10px;
            padding: 8px 16px;
            border: 1px solid rgba(59, 130, 246, 0.4);
            border-radius: 8px;
            background: rgba(59, 130, 246, 0.15);
            color: #93c5fd;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-select-result:hover {
            background: rgba(59, 130, 246, 0.25);
            color: #fff;
        }
        .prompt-combine-bar {
            display: none;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            margin-top: 12px;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 12px;
        }
        .prompt-combine-hint {
            font-size: 13px;
            color: #a1a1aa;
            flex: 1;
        }

        .ai-response p {
            margin-bottom: 12px;
        }

        .ai-response ul, .ai-response ol {
            margin: 12px 0;
            padding-left: 24px;
        }

        .ai-response li {
            margin-bottom: 8px;
        }

        .ai-response code {
            background: rgba(59, 130, 246, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Monaco', 'Menlo', monospace;
            font-size: 13px;
        }

        .ai-response pre {
            background: rgba(0, 0, 0, 0.3);
            padding: 16px;
            border-radius: 8px;
            overflow-x: auto;
            margin: 16px 0;
        }

        /* Decision Matrix Styling */
        .decision-matrix {
            display: grid;
            gap: 8px;
            margin: 16px 0;
        }

        .matrix-row {
            display: grid;
            grid-template-columns: 200px repeat(auto-fit, minmax(100px, 1fr));
            gap: 8px;
            align-items: center;
        }

        .matrix-header {
            font-weight: 600;
            color: #3b82f6;
            padding: 8px;
            background: rgba(59, 130, 246, 0.1);
            border-radius: 6px;
        }

        .matrix-cell {
            padding: 8px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
            text-align: center;
        }

        .priority-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .priority-badge.priority-critical {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
        }

        .priority-badge.priority-high {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: white;
        }

        .priority-badge.priority-medium {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: white;
        }

        .priority-badge.priority-low {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
        }

        .risk-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .risk-badge.risk-high {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
        }

        .risk-badge.risk-medium {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: white;
        }

        .risk-badge.risk-low {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
        }

        /* AI Response Styling */
        .ai-response {
            line-height: 1.8;
            color: #e4e4e7;
        }

        .ai-response h1, .ai-response h3 {
            color: #3b82f6;
            margin: 20px 0 12px 0;
        }
        .ai-response h2 {
            font-weight: 700;
            color: #3b82f6;
            margin: 20px 0 12px 0;
        }

        .ai-response p {
            margin-bottom: 12px;
        }

        .ai-response ul, .ai-response ol {
            margin: 12px 0;
            padding-left: 24px;
        }

        .ai-response li {
            margin-bottom: 8px;
        }

        .ai-response code {
            background: rgba(59, 130, 246, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Monaco', 'Menlo', monospace;
            font-size: 13px;
        }

        .ai-response pre {
            background: rgba(0, 0, 0, 0.3);
            padding: 16px;
            border-radius: 8px;
            overflow-x: auto;
            margin: 16px 0;
        }

        /* Confidence Indicators */
        .confidence-indicator {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .confidence-high {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
        }

        .confidence-medium {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
        }

        .confidence-low {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        /* Risk Level Indicators */
        .risk-level {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .risk-level.critical {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .risk-level.high {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
        }

        .risk-level.medium {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
        }

        .risk-level.low {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
        }

        /* Risk Assessment Response Styling */
        .risk-response {
            line-height: 1.8;
            color: #e4e4e7;
        }

        .risk-response h1, .risk-response h2, .risk-response h3 {
            color: #ef4444;
            margin: 20px 0 12px 0;
        }

        .risk-response p {
            margin-bottom: 12px;
        }

        .risk-response ul, .risk-response ol {
            margin: 12px 0;
            padding-left: 24px;
        }

        .risk-response li {
            margin-bottom: 8px;
        }

        .risk-card {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            padding: 16px;
            margin: 12px 0;
            border-left: 4px solid;
        }

        .risk-card.critical {
            border-left-color: #ef4444;
        }

        .risk-card.high {
            border-left-color: #f59e0b;
        }

        .risk-card.medium {
            border-left-color: #3b82f6;
        }

        .risk-card.low {
            border-left-color: #10b981;
        }

        /* Responsive Design for AI Agent */
        @media (max-width: 1200px) {
            .ai-agent-container {
                grid-template-columns: 1fr;
                min-height: auto;
            }
        }

        /* Modern Chatbot Styles */
        .chatbot-container {
            position: fixed;
            bottom: 32px;
            right: 32px;
            z-index: 1000;
        }

        .chatbot-trigger {
            width: 72px;
            height: 72px;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
            transition: all 0.3s ease;
            border: none;
            color: white;
            animation: chatbotPulse 3s infinite;
        }

        .chatbot-trigger:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
        }

        .chatbot-trigger .material-icons {
            font-size: 32px;
        }

        .chatbot-window {
            position: fixed;
            bottom: 122px;
            right: 32px;
            width: 380px;
            height: calc(100vh - 210px);
            max-height: calc(100vh - 210px);
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(25px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
            display: none;
            flex-direction: column;
            overflow: hidden;
            transform: translateY(20px);
            opacity: 0;
            transition: all 0.4s ease;
        }

        .chatbot-header {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .chatbot-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .chatbot-messages {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
            background: rgba(0, 0, 0, 0.1);
        }

        .message {
            margin-bottom: 20px;
            animation: messageSlideIn 0.4s ease;
        }

        .message.user {
            display: flex;
            justify-content: flex-end;
        }

        .chatbot-input-area {
            padding: 20px;
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .message.bot .message-content.ai-styled .ai-response {
            line-height: 1.7;
            color: #ffffff;
            font-size: 13px;
        }

        .quick-action {
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #a1a1aa;
        }

        .quick-action:hover {
            background: rgba(59, 130, 246, 0.2);
            border-color: #3b82f6;
            color: #3b82f6;
        }

        .typing-indicator {
            display: flex;
            align-items: center;
            padding: 16px 20px;
            margin-bottom: 20px;
        }

        .typing-dots {
            display: flex;
            gap: 6px;
            margin-left: 12px;
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            background: #a1a1aa;
            border-radius: 50%;
            animation: typingDot 1.4s infinite;
        }

        .typing-dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typingDot {
            0%, 60%, 100% {
                transform: translateY(0);
                opacity: 0.4;
            }
            30% {
                transform: translateY(-12px);
                opacity: 1;
            }
        }

        /* Toggle Button */
        .toggle-btn {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
            border: none;
            padding: 16px 32px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }

        .toggle-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
        }

        .issues-tracker-form {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
            background: rgba(0, 0, 0, 0.1);
            max-height: calc(90vh - 80px);
        }

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

        .form-submit:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .form-success {
            text-align: center;
            padding: 40px 20px;
            color: #10b981;
        }

        .form-success .material-icons {
            font-size: 48px;
            margin-bottom: 16px;
        }

        .form-success h3 {
            margin-bottom: 8px;
            color: #f8fafc;
        }

        .form-success p {
            color: #a1a1aa;
            font-size: 14px;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .sidebar {
                width: 80px;
                background: #304661;
            }

            .sidebar .nav-text {
                display: none;
            }

            .header-title {
                font-size: 20px;
            }

            .content {
                padding: 20px;
            }

            .chatbot-window {
                width: 320px;
                right: 20px;
                bottom: 110px;
                height: calc(100vh - 190px);
                max-height: calc(100vh - 190px);
            }

            .chatbot-container {
                bottom: 20px;
                right: 20px;
            }

            .platform-grid,
            .systems-grid {
                grid-template-columns: 1fr;
            }

            .priority-metrics {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            }

            .issues-tracker-window {
                width: 320px;
                max-height: 85vh;
                min-height: 400px;
                right: 50px;
            }

            .issues-tracker-container {
                top: 50%;
                right: 0;
            }
        }

        /* Extra small screens */
        @media (max-width: 480px) {
            .issues-tracker-window {
                width: 280px;
                max-height: 80vh;
                min-height: 350px;
                right: 40px;
            }

            .issues-tracker-form {
                max-height: calc(80vh - 80px);
                padding: 16px;
            }

            .issues-tracker-trigger {
                width: 50px;
                height: 50px;
            }

            .issues-tracker-trigger .material-icons {
                font-size: 20px;
            }
        }

        /* ===== ANIMATIONS ===== */
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .card { animation: fadeInUp 0.5s ease forwards; }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

        /* ============================================ */
        /* ===== ADDITIONAL AI INTEGRATION LAYER ===== */
        /* ============================================ */
        @keyframes aiPulse { 0%,100%{opacity:.55} 50%{opacity:1} }

        @keyframes aiFadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
        @keyframes aiFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-3px)} }
        @keyframes aiRingPulse { 0%{box-shadow:0 0 0 0 rgba(139,92,246,.45)} 70%{box-shadow:0 0 0 10px rgba(139,92,246,0)} 100%{box-shadow:0 0 0 0 rgba(139,92,246,0)} }

        .ai-banner {
            position: relative;
            margin: 0 0 18px;
            padding: 16px 20px;
            border-radius: 14px;
            background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(59,130,246,0.16) 45%, rgba(34,211,238,0.14));
            border: 1px solid rgba(139,92,246,0.3);
            display: flex; align-items: center; gap: 16px;
            overflow: hidden;
            animation: aiFadeUp .5s ease both;
        }
        .ai-banner::before {
            content:""; position:absolute; inset:0;
            background: linear-gradient(90deg, transparent, rgba(196,181,253,0.12), transparent);
            background-size: 200% 100%;
            animation: aiShimmer 6s linear infinite;
            pointer-events:none;
        }
        .ai-banner-icon {
            width:40px; height:40px; border-radius:10px;
            background: linear-gradient(135deg,#8b5cf6,#3b82f6);
            display:flex; align-items:center; justify-content:center;
            color:#fff; flex-shrink:0;
            animation: aiRingPulse 2.6s infinite;
        }
        .ai-banner-icon .material-icons { font-size:22px; }
        .ai-banner-text { flex:1; min-width:0; }
        .ai-banner-title { font-size:13px; font-weight:700; color:#c4b5fd; letter-spacing:.5px; text-transform:uppercase; display:flex; align-items:center; gap:8px; }
        .ai-banner-title::after {
            content:""; width:6px; height:6px; border-radius:50%;
            background:#6ee7b7; box-shadow:0 0 8px #6ee7b7;
            animation: aiPulse 1.8s infinite;
        }
        .ai-banner-headline { font-size:16px; font-weight:600; color:#f8fafc; margin-top:2px; }
        .ai-banner-sub { font-size:12.5px; color:#cbd5e1; margin-top:2px; }
        .ai-banner-actions { display:flex; gap:8px; flex-shrink:0; }
        .ai-banner-btn {
            padding:8px 14px; border-radius:8px;
            background: rgba(255,255,255,0.08);
            border:1px solid rgba(139,92,246,0.35);
            color:#e9d5ff; font-size:12.5px; font-weight:600;
            cursor:pointer; display:flex; align-items:center; gap:6px;
            transition: all .2s;
        }
        .ai-banner-btn:hover { background: linear-gradient(135deg,#8b5cf6,#3b82f6); color:#fff; border-color:transparent; transform: translateY(-1px); }
        .ai-banner-btn .material-icons { font-size:15px; }

        .ai-query-bar {
            display:flex; flex-wrap:wrap; gap:8px; align-items:center;
            margin: 0 0 14px;
            padding: 10px 12px;
            border-radius: 10px;
            background: rgba(15,23,42,0.55);
            border: 1px solid rgba(139,92,246,0.22);
        }
        .ai-query-bar-label {
            font-size:11.5px; font-weight:700; color:#a78bfa; letter-spacing:.5px; text-transform:uppercase;
            display:flex; align-items:center; gap:6px;
        }
        .ai-query-bar-label .material-icons { font-size:14px; }
        .ai-chip {
            padding:6px 12px; border-radius:999px;
            background: rgba(139,92,246,0.14);
            border: 1px solid rgba(139,92,246,0.28);
            color:#e9d5ff; font-size:12px; font-weight:500;
            cursor:pointer; transition: all .2s;
            white-space: nowrap;
        }
        .ai-chip:hover { background: rgba(139,92,246,0.32); color:#fff; transform: translateY(-1px); }

        .ai-narrative-strip {
            margin: 0 0 14px; padding: 10px 14px;
            border-radius: 10px;
            background: linear-gradient(90deg, rgba(34,211,238,0.10), rgba(139,92,246,0.10));
            border: 1px solid rgba(34,211,238,0.22);
            display:flex; align-items:center; gap:10px;
            font-size:13px; color:#e2e8f0;
            overflow:hidden;
        }
        .ai-narrative-icon { color:#22d3ee; display:flex; align-items:center; }
        .ai-narrative-icon .material-icons { font-size:18px; animation: aiFloat 3s ease-in-out infinite; }
        .ai-narrative-text { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }

        .ai-kpi-strip {
            display:grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
            gap:10px; margin: 0 0 18px;
        }
        .ai-kpi-cell {
            position:relative;
            padding:12px 14px; border-radius:10px;
            background: rgba(15,23,42,0.55);
            border:1px solid rgba(139,92,246,0.22);
            transition: all .2s;
        }
        .ai-kpi-cell:hover { border-color: rgba(139,92,246,0.45); transform: translateY(-2px); }
        .ai-kpi-label { font-size:11px; color:#94a3b8; text-transform:uppercase; letter-spacing:.4px; font-weight:600; display:flex; align-items:center; gap:6px; }
        .ai-kpi-label .material-icons { font-size:13px; color:#a78bfa; }
        .ai-kpi-value { font-size:20px; font-weight:700; color:#f8fafc; margin-top:4px; line-height:1.1; }
        .ai-kpi-trend { font-size:11.5px; margin-top:3px; display:flex; align-items:center; gap:4px; color:#6ee7b7; }
        .ai-kpi-trend.warn { color:#fbbf24; }
        .ai-kpi-trend.risk { color:#f87171; }
        .ai-kpi-ai-mark {
            position:absolute; top:8px; right:8px;
            width:22px; height:22px; border-radius:50%;
            background: rgba(139,92,246,0.18);
            border:1px solid rgba(139,92,246,0.4);
            display:flex; align-items:center; justify-content:center;
            cursor:pointer; transition: all .2s;
        }
        .ai-kpi-ai-mark:hover { background: linear-gradient(135deg,#8b5cf6,#3b82f6); border-color:transparent; transform: scale(1.1); }
        .ai-kpi-ai-mark .material-icons { font-size:13px; color:#c4b5fd; pointer-events:none; }
        .ai-kpi-ai-mark:hover .material-icons { color:#fff; }

        .ai-conf-chip {
            display:inline-flex; align-items:center; gap:5px;
            padding:3px 9px; border-radius:999px;
            background: rgba(110,231,183,0.14);
            border:1px solid rgba(110,231,183,0.35);
            color:#6ee7b7; font-size:11px; font-weight:600;
            margin-left:10px; vertical-align:middle;
        }
        .ai-conf-chip .material-icons { font-size:12px; }
        .ai-conf-chip.med { background: rgba(251,191,36,0.14); border-color: rgba(251,191,36,0.35); color:#fbbf24; }
        .ai-conf-chip.low { background: rgba(248,113,113,0.14); border-color: rgba(248,113,113,0.35); color:#f87171; }

        .ai-explain-btn {
            display:inline-flex; align-items:center; gap:5px;
            padding:4px 10px; border-radius:999px;
            background: rgba(139,92,246,0.14);
            border:1px solid rgba(139,92,246,0.3);
            color:#c4b5fd; font-size:11.5px; font-weight:600;
            margin-left:8px; cursor:pointer; vertical-align:middle;
            transition: all .2s;
            -webkit-text-fill-color: currentColor;
        }
        .ai-explain-btn:hover { background: linear-gradient(135deg,#8b5cf6,#3b82f6); color:#fff; border-color:transparent; }
        .ai-explain-btn .material-icons { font-size:13px; -webkit-text-fill-color: currentColor; }

        .ai-inline-btn {
            display:inline-flex; align-items:center; gap:5px;
            padding:4px 10px; border-radius:999px;
            background: rgba(34,211,238,0.10);
            border:1px solid rgba(34,211,238,0.28);
            color:#22d3ee; font-size:11px; font-weight:600;
            margin-left:6px; cursor:pointer; vertical-align:middle;
            transition: all .2s;
            -webkit-text-fill-color: currentColor;
        }
        .ai-inline-btn:hover { background: linear-gradient(135deg,#22d3ee,#3b82f6); color:#fff; border-color:transparent; }
        .ai-inline-btn .material-icons { font-size:12px; -webkit-text-fill-color: currentColor; }

        .ai-callout {
            max-height:0; overflow:hidden;
            margin: 0; padding: 0 16px;
            border-radius: 10px;
            background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(59,130,246,0.10));
            border:1px solid rgba(139,92,246,0);
            color:#e2e8f0; font-size:13px; line-height:1.6;
            transition: max-height .35s ease, padding .35s ease, border-color .35s ease, margin .35s ease;
        }
        .ai-callout.open { max-height:600px; padding: 14px 16px; margin: 10px 0 14px; border-color: rgba(139,92,246,0.3); }
        .ai-callout .ai-callout-head { font-size:11.5px; font-weight:700; color:#a78bfa; letter-spacing:.5px; text-transform:uppercase; margin-bottom:6px; display:flex; align-items:center; gap:6px; }
        .ai-callout .ai-callout-head .material-icons { font-size:14px; }
        .ai-callout p { margin: 6px 0; }
        .ai-callout ul { margin: 6px 0 6px 18px; padding:0; }
        .ai-callout li { margin: 3px 0; }
        .ai-callout .ai-callout-actions { margin-top:8px; display:flex; gap:6px; flex-wrap:wrap; }
        .ai-callout .ai-callout-actions button {
            padding:4px 10px; border-radius:6px;
            background: rgba(139,92,246,0.16);
            border:1px solid rgba(139,92,246,0.3);
            color:#c4b5fd; font-size:11px; font-weight:600; cursor:pointer;
            transition: all .2s;
        }
        .ai-callout .ai-callout-actions button:hover { background: linear-gradient(135deg,#8b5cf6,#3b82f6); color:#fff; border-color:transparent; }

        /* Sparkle on feature card titles */
        .feature-title-with-ai { display:flex; align-items:center; gap:8px; }
        .ai-card-spark {
            width:22px; height:22px; border-radius:50%;
            background: rgba(139,92,246,0.18);
            border:1px solid rgba(139,92,246,0.4);
            display:inline-flex; align-items:center; justify-content:center;
            cursor:pointer; transition: all .2s;
            flex-shrink:0;
        }
        .ai-card-spark:hover { background: linear-gradient(135deg,#8b5cf6,#3b82f6); border-color:transparent; transform: scale(1.1); }
        .ai-card-spark .material-icons { font-size:13px; color:#c4b5fd; pointer-events:none; }
        .ai-card-spark:hover .material-icons { color:#fff; }

        /* Prompt enhancer tray */
        .ai-prompt-enhancer {
            margin: 10px 0 0;
            padding: 10px 12px;
            border-radius: 10px;
            background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(139,92,246,0.08));
            border: 1px solid rgba(34,211,238,0.22);
            display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
        }
        .ai-prompt-enhancer-label {
            font-size:11px; font-weight:700; color:#22d3ee; letter-spacing:.5px; text-transform:uppercase;
            display:flex; align-items:center; gap:6px;
        }
        .ai-prompt-enhancer-label .material-icons { font-size:13px; }
        .ai-enhance-chip {
            padding:5px 10px; border-radius:999px;
            background: rgba(34,211,238,0.12);
            border: 1px solid rgba(34,211,238,0.3);
            color:#a5f3fc; font-size:11.5px; font-weight:500;
            cursor:pointer; transition: all .2s;
        }
        .ai-enhance-chip:hover { background: linear-gradient(135deg,#22d3ee,#3b82f6); color:#fff; border-color:transparent; transform: translateY(-1px); }

        /* External floating Pria aux panel - now moved inside chatbot window */
        .ai-pria-aux {
            display: none !important;
        }

        /* Inline Pria aux buttons inside chatbot window */
        .ai-pria-aux-inline {
            padding-bottom: 6px;
            margin-bottom: 6px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .quick-action.ai-pria-aux-btn {
            background: linear-gradient(135deg, rgba(139,92,246,0.92), rgba(59,130,246,0.92)) !important;
            color: #fff !important;
            border: none !important;
            font-weight: 600;
            box-shadow: 0 6px 16px rgba(139,92,246,0.35);
            display: inline-flex;
            align-items: center;
        }
        .quick-action.ai-pria-aux-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 22px rgba(139,92,246,0.5);
        }

/* ===== BENEFITS-SIDEBAR-STYLE — sidebar menu design ported from benefits-realization.html ===== */
  .sidebar { width:280px; background:rgba(255,255,255,0.05); backdrop-filter:blur(20px); border-right:1px solid rgba(255,255,255,0.1); color:white; padding:24px 0; box-shadow:2px 0 25px rgba(0,0,0,0.3); transition:all .3s ease; overflow-y:auto; flex-shrink:0; }
  .sidebar.collapsed { width:80px; }

  .sidebar .logo { display:flex; align-items:center; font-size:20px; font-weight:600; color:white; }
  .sidebar .logo img { height:32px; }
  .nav-item { display:flex; align-items:center; padding:12px 24px; cursor:pointer; transition:all .3s ease; border:none; background:none; color:white; width:100%; text-align:left; position:relative; border-radius:0 25px 25px 0; margin:4px 0; font-size:14px; font-family:inherit; }

  .nav-item.active-page { background:linear-gradient(135deg,rgba(59,130,246,0.3),rgba(139,92,246,0.3)); border-left:4px solid #8b5cf6; color:white; font-weight:500; box-shadow:0 4px 20px rgba(139,92,246,0.3); }
  .nav-item .material-icons { margin-right:12px; font-size:20px; flex-shrink:0; color:inherit; }
  .sidebar.collapsed .nav-text { display:none; }
  .nav-text { flex:1; white-space:nowrap; overflow:hidden; }
  .nav-item.section-header { background:rgba(59,130,246,0.2); border-left:4px solid #3b82f6; color:#d1d5db; font-weight:600; margin:8px 0 4px 0; box-shadow:0 4px 15px rgba(59,130,246,0.2); }
  .expand-icon { margin-left:auto; transition:transform .3s ease; font-size:18px; flex-shrink:0; }
  .nav-item.section-header.expanded .expand-icon { transform:rotate(90deg); }
  .nav-subitems { max-height:0; overflow:hidden; transition:max-height .3s ease; background:transparent; }
  .nav-subitems.expanded { max-height:1400px; }
  .sidebar.collapsed .nav-subitems { display:none; }
  .sidebar.collapsed .expand-icon { display:none; }
  .nav-subitems .nav-item { padding-left:46px; font-weight:400; margin:2px 0; font-size:13px; background:transparent; }
  .nav-subitems .nav-item .material-icons { font-size:18px; }
  .nav-subitems .nav-item:hover { background:rgba(255,255,255,0.1); transform:translateX(8px); }
  .nav-subitems .nav-item.active-page { background:rgba(139,92,246,0.2); border-left:3px solid #8b5cf6; box-shadow:none; }

/* ===== PROMPT-SIDEBAR-SELECT-FIX — match score-rank selected/expanded backgrounds ===== */
  .nav-item.section-header.expanded { background:rgba(59,130,246,0.2); }
  .nav-subitems { background:transparent; backdrop-filter:none; }

  .process-progress-pct { color:#fff; font-weight:600; background:linear-gradient(135deg,#3b82f6,#8b5cf6); padding:3px 10px; border-radius:20px; }

  .process-step { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:9px; flex:1; cursor:pointer; background:none; border:none; font-family:inherit; padding:0; }
