/* eanbid-engine.css - BID 엔진 공통/전용 스타일 */

.engine-page { }
.engine-container{max-width:1200px;margin:0 auto;padding:24px 28px 40px;}
@media (max-width: 900px){.engine-container{padding:18px 16px 32px;}}

/* Buttons (fallback if common btn not present) */
.engine-btn{display:inline-flex;align-items:center;gap:8px;border-radius:10px;padding:10px 14px;font-weight:800;text-decoration:none;border:1px solid rgba(148,163,184,.35);background:#fff;cursor:pointer;transition:.15s ease;}
.engine-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(2,6,23,.08);}
.engine-btn.success{background:linear-gradient(135deg,#10b981,#34d399);border-color:rgba(16,185,129,.25);color:#fff;}
.btn-sm{padding:8px 12px;border-radius:9px;font-size:13px;}


/* ===== v2_algo_genes_dashboard.php ===== */


        .header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
        }

        .header h1 {
            font-family: 'Outfit', sans-serif;
            font-weight: 900;
            font-size: 32px;
            margin: 0;
            background: linear-gradient(90deg, #a855f7, #ec4899);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .miner-btn {
            background: linear-gradient(135deg, #8b5cf6, #6366f1);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
            text-decoration: none;
        }

        .miner-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
        }

        .genes-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 20px;
        }

        .gene-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 25px;
            position: relative;
            overflow: hidden;
            transition: 0.3s;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }
        
        .gene-card:hover {
            border-color: #cbd5e1;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }

        .gene-card.active { border-color: var(--success); }
        .gene-card.active::before {
            content: ''; position: absolute; top:0; left:0; width:100%; height:3px; background: var(--success);
        }

        /* Trash Bin Logic */
        .gene-card.dropped { display: none; filter: grayscale(1); opacity: 0.8; }
        .show-trash .gene-card.dropped { display: block; }
        .show-trash .gene-card:not(.dropped) { display: none; }

        .g-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
        }

        .g-id {
            font-family: 'JetBrains Mono', monospace;
            font-size: 14px;
            font-weight: 800;
            color: var(--text-sub);
        }

        .g-badge {
            font-size: 12px;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .g-name {
            font-size: 18px;
            font-weight: 800;
            color: var(--text-main);
            margin-bottom: 20px;
            line-height: 1.4;
        }

        .metrics-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            background: #f8fafc;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
            border: 1px solid var(--border);
        }

        .metric {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .m-label { font-size: 11px; color: var(--text-sub); }
        .m-val { font-size: 18px; font-weight: 800; color: var(--primary); font-family: 'JetBrains Mono'; }
        .m-val.highlight { color: #db2777; }

        .action-bar {
            display: flex;
            gap: 10px;
        }

        .btn {
            flex: 1;
            padding: 10px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            border: none;
            transition: 0.2s;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
        }

        .btn-promote { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
        .btn-promote:hover { background: #10b981; color: white; }
        
        .btn-demote { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3);}
        .btn-demote:hover { background: #ef4444; color: white; }

        /* Loader specific to button */
        .executing i { animation: spin 1s linear infinite; }
        @keyframes spin { 100% { transform: rotate(360deg); } }

/* ===== v2_analysis_cluster.php ===== */


        .header h1 {
            font-family: 'Outfit', sans-serif;
            font-weight: 900;
            font-size: 34px;
            letter-spacing: -1px;
            margin: 0;
            background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .header p {
            color: var(--text-sub);
            font-size: 14px;
            margin-top: 5px;
        }

        .dashboard {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 20px;
            margin-top: 30px;
        }

        .cluster-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            height: calc(100vh - 150px);
            overflow-y: auto;
            padding-right: 10px;
        }

        .cluster-list::-webkit-scrollbar { width: 6px; }
        .cluster-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

        .cluster-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            padding: 15px;
            border-radius: 12px;
            cursor: pointer;
            transition: 0.2s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cluster-card:hover {
            border-color: var(--primary);
            background: var(--card-hover);
        }

        .cluster-card.active {
            border-color: var(--primary-glow);
            box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
            background: rgba(59, 130, 246, 0.1);
        }

        .c-name {
            font-weight: 800;
            font-size: 15px;
            color: var(--text-main);
        }

        .c-count {
            font-size: 13px;
            color: var(--success);
            font-weight: 600;
            background: rgba(16, 185, 129, 0.1);
            padding: 3px 8px;
            border-radius: 6px;
        }

        .right-panel {
            background: var(--card-bg);
            border: 1px dashed var(--border);
            border-radius: 16px;
            padding: 30px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
        }

        .target-title {
            font-size: 26px;
            font-weight: 800;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .target-mae {
            font-size: 20px;
            font-weight: 900;
            color: var(--warning);
        }

        .factors-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }

        .factor-box {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            position: relative;
            overflow: hidden;
            transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }

        .factor-header {
            font-size: 12px;
            color: var(--primary);
            font-weight: 800;
            letter-spacing: 1px;
        }

        .factor-name {
            font-size: 16px;
            font-weight: 700;
            margin: 8px 0;
            color: var(--text-main);
        }

        .weight-val {
            font-size: 32px;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 800;
            color: var(--success);
            margin: 10px 0;
            transition: all 0.5s ease;
        }
        
        .weight-val.low { color: var(--empty); }

        .weight-bar-bg {
            background: #f1f5f9;
            height: 6px;
            border-radius: 3px;
            width: 100%;
            overflow: hidden;
        }

        .weight-bar-fill {
            background: linear-gradient(90deg, #10b981, #4f46e5);
            height: 100%;
            border-radius: 3px;
            width: 0%;
            transition: width 0.8s cubic-bezier(0.1, 0.9, 0.2, 1);
        }

        .loading-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(255, 255, 255, 0.9);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 20px;
            z-index: 999;
        }

        .spinner {
            border: 4px solid rgba(59, 130, 246, 0.3);
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }

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

        /* Algo Info Array */
        .algo-desc { display:none; }

/* ===== v2_base_engine.php ===== */


        .header {
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
        }

        .header h1 {
            font-family: 'Outfit', sans-serif;
            font-weight: 900;
            font-size: 32px;
            margin: 0;
            background: linear-gradient(90deg, #4f46e5, #ec4899);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .algo-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 24px;
        }

        .algo-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
            transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .algo-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
            border-color: #cbd5e1;
        }

        .algo-id {
            background: var(--primary-glow);
            color: var(--primary);
            padding: 4px 10px;
            border-radius: 6px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            font-weight: 800;
            display: inline-block;
            width: fit-content;
        }

        .algo-card h3 {
            margin: 0;
            font-size: 18px;
            color: var(--text-main);
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .algo-card p {
            margin: 0;
            color: var(--text-sub);
            font-size: 14.5px;
            line-height: 1.6;
            flex: 1;
        }

        .algo-formula {
            background: #f1f5f9;
            padding: 12px 16px;
            border-radius: 8px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            font-weight: 700;
            color: var(--primary);
            border: 1px solid #e2e8f0;
            word-break: break-all;
        }

/* ===== v2_bulk_evaluation.php ===== */
.dashboard {
            flex: 1;
            padding: 16px 24px;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .active-badge {
            background: var(--success);
            color: white;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
        }

        .title-box h1 {
            font-family: 'Outfit', sans-serif;
            font-size: 32px;
            font-weight: 900;
            margin: 0 0 8px 0;
            background: linear-gradient(90deg, #60a5fa, #a78bfa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.02em;
        }

        .title-box p {
            margin: 0;
            color: var(--text-sub);
            font-size: 15px;
        }

        .control-panel {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .stats-grid {
            display: flex;
            gap: 32px;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .stat-label {
            font-size: 12px;
            color: var(--text-sub);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .stat-value {
            font-family: 'JetBrains Mono', monospace;
            font-size: 28px;
            font-weight: 800;
            color: var(--text-main);
            line-height: 1;
        }
        .stat-value.highlight { color: var(--primary); }
        .stat-value.success { color: var(--success); }

        .btn-start {
            background: linear-gradient(135deg, var(--primary), #4f46e5);
            color: white;
            border: none;
            padding: 16px 32px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 4px 20px var(--primary-glow);
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .btn-start:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px var(--primary-glow);
        }

        .btn-start:disabled {
            background: var(--border);
            box-shadow: none;
            cursor: not-allowed;
            color: var(--text-sub);
            transform: none;
        }

        .btn-stop {
            background: linear-gradient(135deg, #f43f5e, #be123c);
            color: white;
            border: none;
            padding: 16px 32px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(244, 63, 94, 0.4);
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 12px;
            display: none;
        }

        .btn-stop:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(244, 63, 94, 0.6);
        }

        .progress-container {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid var(--border);
            border-radius: 999px;
            height: 12px;
            overflow: hidden;
            position: relative;
        }

        .progress-bar {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: linear-gradient(90deg, #3b82f6, #8b5cf6);
            width: 0%;
            transition: width 0.3s ease;
        }

        .progress-glow {
            position: absolute;
            top: 0;
            right: 0;
            height: 100%;
            width: 30px;
            background: white;
            filter: blur(5px);
            opacity: 0.5;
        }

        .main-grid {
            display: grid;
            grid-template-columns: 1fr 420px;
            gap: 16px;
            flex: 1;
            min-height: 0;
        }

        /* Terminal / Log panel (LIGHT – consistent with EANBID cards) */
        .terminal-panel {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(2,6,23,.06);
        }

        .terminal-header {
            background: rgba(248,250,252,.8);
            padding: 12px 18px;
            border-bottom: 1px solid var(--border);
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .term-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .term-dot.red { background: #ef4444; }
        .term-dot.yellow { background: #f59e0b; }
        .term-dot.green { background: #10b981; }

        .term-title {
            margin-left: 10px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: .02em;
            color: var(--text-sub);
        }

        .terminal-content {
            padding: 14px 16px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            color: var(--text-main);
            overflow-y: auto;
            height: 380px;
            line-height: 1.55;
            display: flex;
            flex-direction: column;
            gap: 6px;
            background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(248,250,252,.65));
        }

        .log-line {
            display: flex;
            gap: 12px;
            padding: 8px 10px;
            border: 1px solid rgba(148,163,184,.22);
            border-radius: 12px;
            background: rgba(255,255,255,.85);
        }

        .log-time { color: var(--text-sub); width: 80px; flex-shrink: 0; }
        .log-id { color: var(--primary); width: 140px; flex-shrink: 0; font-weight: 800; }
        .log-msg { color: var(--text-main); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .log-err { color: #16a34a; font-weight: 900; width: 110px; text-align: right; flex-shrink: 0; }
        .log-err.high { color: #ef4444; }

        .metrics-sidebar {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .metric-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        }

        @keyframes pulseInfo {
            0% { transform: scale(1); opacity: 0.8; }
            50% { transform: scale(1.05); opacity: 1; }
            100% { transform: scale(1); opacity: 0.8; }
        }

        .pulse-indicator {
            width: 10px; height: 10px; background: var(--success); border-radius: 50%;
            display: inline-block; animation: pulseInfo 2s infinite;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            border-bottom: 1px solid var(--border);
        }
        .summary-row:last-child { border-bottom: none; padding-bottom: 0; }
        .summary-kr { color: var(--text-sub); font-size: 13px; }
        .summary-val { font-family: 'JetBrains Mono'; font-weight: 800; color: var(--text-main);}

        /* Epoch Summary Modal */
        .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(8px);
            display: none; justify-content: center; align-items: center; z-index: 1000;
            opacity: 0; transition: opacity 0.3s ease;
        }
        .modal-overlay.active { display: flex; opacity: 1; }
        .epoch-modal {
            background: var(--card-bg); border: 1px solid var(--border);
            border-radius: 16px; padding: 32px; width: 700px; max-width: 90%;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
            transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex; flex-direction: column; gap: 24px;
        }
        .modal-overlay.active .epoch-modal { transform: translateY(0); }
        .epoch-title { font-family: 'Outfit'; font-size: 24px; font-weight: 900; color: #fff; text-align: center; }
        .epoch-title span { background: linear-gradient(90deg, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        
        .diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
        .diff-panel { background: #0f172a; border-radius: 8px; border: 1px solid var(--border); padding: 16px; }
        .diff-header { font-size: 13px; font-weight: 800; color: var(--text-sub); margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
        .diff-list { display: flex; flex-direction: column; gap: 8px; max-height: 250px; overflow-y: auto; }
        .diff-item { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,0.05); }
        .diff-item:last-child { border-bottom: none; }
        .diff-name { color: #e2e8f0; font-weight: 600; }
        .diff-up { color: var(--success); font-family: 'JetBrains Mono'; font-weight: 700; }
        .diff-down { color: var(--danger); font-family: 'JetBrains Mono'; font-weight: 700; }
        .diff-flat { color: var(--text-sub); font-family: 'JetBrains Mono'; }

        .modal-btn {
            background: linear-gradient(135deg, var(--primary), #4f46e5); color: white; border: none;
            padding: 14px 24px; border-radius: 8px; font-size: 15px; font-weight: 800;
            cursor: pointer; text-align: center; margin-top: 8px; transition: transform 0.2s;
        }
        .modal-btn:hover { transform: scale(1.02); }
        .auto-restart-txt { font-size: 12px; color: var(--text-sub); text-align: center; margin-top: -16px; font-family: 'JetBrains Mono'; }

/* ===== v2_engine_architecture.php ===== */


        .header {
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
        }

        .header h1 {
            font-family: 'Outfit', sans-serif;
            font-weight: 900;
            font-size: 32px;
            margin: 0;
            background: linear-gradient(90deg, #4f46e5, #0ea5e9);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .diagram-container {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 40px;
            margin-bottom: 40px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            align-items: center;
            position: relative;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }

        .node-layer {
            display: flex;
            gap: 40px;
            justify-content: center;
            width: 100%;
            position: relative;
            z-index: 2;
        }

        .node {
            background: #ffffff;
            border: 2px solid;
            border-radius: 12px;
            padding: 24px;
            width: 260px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            position: relative;
            transition: 0.3s;
        }

        .node:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }

        .node-title {
            font-size: 16px;
            font-weight: 800;
            margin-bottom: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
        }

        .node-desc {
            font-size: 13.5px;
            color: var(--text-sub);
            line-height: 1.5;
        }

        .node.data { border-color: #3b82f6; background: #eff6ff;}
        .node.data .node-title { color: #2563eb; }

        .node.base { border-color: #f59e0b; background: #fffbeb;}
        .node.base .node-title { color: #d97706; }

        .node.auto { border-color: #ec4899; background: #fdf2f8;}
        .node.auto .node-title { color: #db2777; }

        .node.fusion { border-color: #8b5cf6; width: 440px; background: #f5f3ff;}
        .node.fusion .node-title { color: #7c3aed; font-size: 18px;}

        .node.final { border-color: #10b981; width: 340px; background: #ecfdf5; border-width: 3px;}
        .node.final .node-title { color: #059669; font-size: 20px;}

        .arrow-down {
            font-size: 24px;
            color: #cbd5e1;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(10px); color: #94a3b8; }
        }

        .explanation-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        .exp-card {
            background: #ffffff;
            border: 1px solid var(--border);
            border-left: 4px solid var(--primary);
            padding: 24px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        }
        .exp-card h3 { margin:0 0 12px 0; color:var(--text-main); font-size:18px; font-weight:800; letter-spacing:-0.02em;}
        .exp-card p { margin:0; color:var(--text-sub); font-size:14.5px; line-height:1.6;}


/* ===== v2_bulk_evaluation: log summary + toggle ===== */
.term-toggle{
  margin-left:auto;
  border:1px solid rgba(148,163,184,.35);
  background:rgba(255,255,255,.9);
  padding:8px 10px;
  border-radius:10px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
}
.term-toggle:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(2,6,23,.08);}

.log-summary{padding:14px 14px 10px;border-top:1px solid var(--border);background:rgba(248,250,252,.7);}
.log-summary-cards{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:10px;margin-bottom:10px;}
.log-s-card{border:1px solid var(--border);border-radius:14px;padding:10px 12px;background:rgba(255,255,255,.9);}
.log-s-card .k{font-size:11px;color:var(--text-sub);font-weight:800;letter-spacing:.02em;margin-bottom:4px;}
.log-s-card .v{font-size:14px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.log-summary-lines{display:flex;flex-direction:column;gap:6px;}
.mini-line{display:grid;grid-template-columns:64px 60px 1fr auto;gap:10px;align-items:center;
  padding:8px 10px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.85);font-size:12px;}
.mini-line .t{font-family:'JetBrains Mono';color:var(--text-sub);}
.mini-line .i{font-family:'JetBrains Mono';font-weight:900;}
.mini-line .m{color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mini-line .e{font-family:'JetBrains Mono';font-weight:900;color:var(--pink);}

.terminal-content.is-collapsed{max-height:0!important;padding-top:0!important;padding-bottom:0!important;overflow:hidden!important;border-top:none!important;}
