/* ==========================================================================
   OMNIVIBE AGENTBUILDER DESIGN SYSTEM
   Premium Obsidian Glassmorphism. Dark, tactile, character-centric.
   ========================================================================== */

:root {
    /* Brand Palette */
    --bg-base:          #050A06; /* Deepest Forest Obsidian */
    --panel-bg:         rgba(15, 28, 20, 0.45); /* Translucent Emerald-Grey */
    --panel-border:     rgba(212, 163, 115, 0.12); /* Warm Antique Gold */
    --panel-border-focus: rgba(212, 163, 115, 0.35);
    
    --accent-emerald:   #34684D;
    --accent-emerald-glow: rgba(52, 104, 77, 0.3);
    --accent-gold:      #C8A261;
    --accent-gold-glow: rgba(200, 162, 97, 0.25);
    --accent-rust:      #B23B2A;
    --accent-rust-glow: rgba(178, 59, 42, 0.2);

    /* Text */
    --text-high:        #F0EAE1; /* Soft Alabaster */
    --text-mid:         #9CAEA4; /* Muted Sage */
    --text-low:         #63756C; /* Shadow Leaf */
    --text-white:       #FFFFFF;

    /* Fonts */
    --font-heading:     'Outfit', system-ui, sans-serif;
    --font-body:        'Inter', system-ui, sans-serif;
    --font-mono:        'JetBrains Mono', monospace;

    /* Effects */
    --shadow-base:      0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow:      0 0 20px rgba(200, 162, 97, 0.12);
    --blur-glass:       blur(12px) saturate(1.2);
    --transition-base:  all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ RESET & SCROLLBAR ============ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-high);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(200, 162, 97, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-high);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.85rem; }

p {
    color: var(--text-mid);
    font-size: 0.95rem;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition-base);
}
a:hover {
    color: var(--text-white);
    text-shadow: 0 0 8px var(--accent-gold-glow);
}

/* ============ LAYOUT ============ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Sticky Header */
.nav-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(5, 10, 6, 0.7);
    backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

.nav-header.scrolled {
    background: rgba(5, 10, 6, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(200, 162, 97, 0.15);
}

.nav-container {
    height: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    cursor: pointer;
}
.wordmark span {
    color: var(--accent-gold);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ============ THREE-COLUMN WORKSPACE ============ */
.workspace-grid {
    display: grid;
    grid-template-columns: 300px 1fr 360px;
    gap: 1.5rem;
    padding-top: 6rem;
    padding-bottom: 3rem;
    height: calc(100vh - 4.5rem);
    align-items: stretch;
}

@media (max-width: 1200px) {
    .workspace-grid {
        grid-template-columns: 280px 1fr;
        height: auto;
    }
    .panel.right-column {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
    .panel.left-column,
    .panel.right-column {
        grid-column: span 1;
    }
}

/* Standard Panel Box */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: var(--blur-glass);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-base);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel:hover {
    border-color: rgba(200, 162, 97, 0.18);
    box-shadow: var(--shadow-base), var(--shadow-glow);
}

.panel-header {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
}

.panel-title i {
    color: var(--accent-gold);
}

/* ============ COLUMN 1: THE PARTS DEPOT ============ */
.depot-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-right: 0.25rem;
}

.depot-group-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-low);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.depot-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Draggable Cards */
.part-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: grab;
    user-select: none;
    transition: var(--transition-base);
}

.part-card i {
    color: var(--text-mid);
    flex-shrink: 0;
}

.part-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-high);
}

.part-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-emerald-light);
    transform: translateX(3px);
}

/* Colors for block classes */
.part-card.trigger-block { border-left: 3px solid #10B981; }
.part-card.skill-block { border-left: 3px solid #3B82F6; }
.part-card.dest-block { border-left: 3px solid #EC4899; }

/* ============ COLUMN 2: THE ASSEMBLY BAY ============ */
.assembly-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* The Persona Card Stage */
.character-stage {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 600px) {
    .character-stage {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

/* Dynamic Avatar Frame */
.avatar-frame {
    width: 96px;
    height: 96px;
    background: rgba(15, 28, 20, 0.6);
    border: 2px solid var(--panel-border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-frame img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: var(--transition-base);
}

.avatar-carousel-btn {
    position: absolute;
    bottom: 2px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: var(--accent-gold);
    width: 100%;
    font-size: 0.65rem;
    padding: 0.15rem 0;
    cursor: pointer;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

/* Character Settings Forms */
.stage-forms {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    width: 100%;
}

.agent-name-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    padding: 0.25rem 0;
    width: 100%;
    transition: var(--transition-base);
}

.agent-name-input:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
}

/* Custom Sliders */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-mid);
    text-transform: uppercase;
}

.agent-slider {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.agent-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 8px var(--accent-gold);
    transition: var(--transition-base);
}
.agent-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* The Assembly Drop Zone */
.assembly-track {
    background: rgba(0, 0, 0, 0.15);
    border: 2px dashed rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    min-height: 250px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    transition: var(--transition-base);
}

.assembly-track.drag-over {
    border-color: var(--accent-gold);
    background: rgba(200, 162, 97, 0.03);
}

/* Empty Track Placeholder state */
.track-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    text-align: center;
    color: var(--text-low);
    gap: 0.75rem;
}

.track-placeholder i {
    font-size: 2rem;
    color: rgba(255,255,255,0.05);
}

/* Dragged Active Blocks on Assembly Track */
.active-block {
    background: rgba(25, 43, 32, 0.35);
    border: 1px solid rgba(200, 162, 97, 0.15);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    transition: var(--transition-base);
}

.active-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.active-block-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-mono);
    color: var(--text-white);
}

.active-block-delete {
    background: none;
    border: none;
    color: var(--text-low);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-base);
}
.active-block-delete:hover {
    color: var(--accent-rust);
}

/* Inline card config inputs */
.block-config {
    margin-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
}

.config-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: var(--text-high);
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: var(--transition-base);
}

.config-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Active block coloring borders */
.active-block.trigger { border-left: 4px solid #10B981; }
.active-block.skill { border-left: 4px solid #3B82F6; }
.active-block.dest { border-left: 4px solid #EC4899; }

/* Sortable drag ghosting */
.sortable-ghost {
    opacity: 0.3;
    border: 1px dashed var(--accent-gold);
    background: rgba(200, 162, 97, 0.05);
}

/* ============ COLUMN 3: THE TEST TRACK ============ */
.test-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.api-vault-box {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 1rem;
}

.text-testbench {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-high);
    resize: none;
    width: 100%;
    height: 120px;
    outline: none;
    transition: var(--transition-base);
}
.text-testbench:focus {
    border-color: var(--accent-emerald);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

/* Running Console logs */
.console-box {
    flex: 1;
    background: #030604;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 220px;
}

.console-line {
    line-height: 1.5;
    color: var(--text-mid);
    word-break: break-all;
}

.console-line.system { color: var(--accent-gold); }
.console-line.thinking { color: var(--text-low); font-style: italic; }
.console-line.success { color: #10B981; }
.console-line.error { color: var(--accent-rust); }

.console-empty {
    color: var(--text-low);
    text-align: center;
    padding-top: 4rem;
}

/* Loading status inside console */
.console-loader {
    display: none;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 700;
}

.mini-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(200, 162, 97, 0.2);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Verification Dialogue HUD popup */
.verify-popup {
    background: #0d1711;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 0 30px rgba(200, 162, 97, 0.15);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {
    0% { border-color: rgba(200, 162, 97, 0.5); }
    50% { border-color: rgba(200, 162, 97, 1); }
    100% { border-color: rgba(200, 162, 97, 0.5); }
}

.verify-title {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.verify-text {
    font-size: 0.82rem;
    line-height: 1.5;
    background: rgba(0,0,0,0.4);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    max-height: 100px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.verify-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* ============ BUTTONS & BADGES ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #152d21 100%);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.btn:hover {
    background: linear-gradient(135deg, #447b5c 0%, var(--accent-emerald) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(52, 104, 77, 0.3);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-mid);
    border-color: rgba(255, 255, 255, 0.06);
}
.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(200, 162, 97, 0.1);
}

.btn.full { width: 100%; }

.btn.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* Telemetry Badge */
.telemetry-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(200, 162, 97, 0.08);
    border: 1px solid rgba(200, 162, 97, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* ============ AUTH/EXPORT MODAL ============ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 10, 6, 0.85);
    backdrop-filter: var(--blur-glass);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-card {
    background: #070d08;
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    box-shadow: var(--shadow-base), 0 0 40px rgba(200, 162, 97, 0.08);
    position: relative;
    animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-low);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-base);
}
.modal-close:hover {
    color: var(--accent-rust);
}

.modal-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text-high);
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    outline: none;
    transition: var(--transition-base);
}
.modal-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(200, 162, 97, 0.15);
}

/* ============ HISTORY DRAWER ============ */
.history-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #060a07;
    z-index: 1500;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.history-drawer.open {
    right: 0;
}

.history-drawer-header {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-drawer-close {
    background: none;
    border: none;
    color: var(--text-mid);
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition-base);
}
.history-drawer-close:hover {
    color: var(--text-white);
}

.history-drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.history-item-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.history-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(15, 28, 20, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.history-item-avatar img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.history-item-info {
    flex: 1;
}

.history-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.15rem;
}

.history-item-meta {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--accent-gold);
}

.history-drawer-empty {
    color: var(--text-low);
    text-align: center;
    padding-top: 6rem;
    font-size: 0.9rem;
}

.history-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============ TOASTS ============ */
.toast-hud {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0b1510;
    border: 1px solid var(--accent-gold);
    color: var(--text-white);
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-base), 0 0 20px rgba(200, 162, 97, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-hud.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.toast-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    box-shadow: 0 0 6px var(--accent-gold);
}

/* ============ LINTER PANEL ============ */
.linter-panel {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.linter-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    color: var(--text-high);
}

.linter-title i {
    color: var(--accent-gold);
    width: 14px;
    height: 14px;
}

.linter-status-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.linter-status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.linter-status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.linter-status-badge.error {
    background: rgba(178, 59, 42, 0.1);
    color: var(--accent-rust);
    border: 1px solid rgba(178, 59, 42, 0.25);
}

.linter-issues-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
}

.linter-issue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    gap: 0.5rem;
}

.linter-issue-text {
    flex: 1;
    color: var(--text-mid);
}

.linter-issue-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.linter-issue-icon.error { color: var(--accent-rust); }
.linter-issue-icon.warning { color: var(--accent-gold); }

.quick-fix-btn {
    background: rgba(200, 162, 97, 0.08);
    border: 1px solid rgba(200, 162, 97, 0.2);
    color: var(--accent-gold);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-base);
}

.quick-fix-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-base);
    box-shadow: 0 0 6px var(--accent-gold-glow);
}

/* Lint indicator on active blocks */
.active-block.lint-error {
    border-color: var(--accent-rust) !important;
    box-shadow: 0 0 10px rgba(178, 59, 42, 0.15) !important;
}

.active-block.lint-warning {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 10px rgba(200, 162, 97, 0.1) !important;
}

/* Onboarding On-Screen Tutorial Styles */
.tutorial-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tutorial-step-subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tutorial-desc {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.tutorial-visual {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tutorial-block-sample {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-high);
}

.tutorial-block-sample.trigger {
    border-left: 3px solid #3b82f6;
}

.tutorial-block-sample.skill {
    border-left: 3px solid #8b5cf6;
}

.tutorial-block-sample.dest {
    border-left: 3px solid #10b981;
}

.tutorial-badge {
    font-size: 0.62rem;
    font-family: var(--font-mono);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.tutorial-badge.trigger { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.tutorial-badge.skill { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.tutorial-badge.dest { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.tutorial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.tutorial-dots {
    display: flex;
    gap: 0.4rem;
}

.tutorial-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: var(--transition-base);
}

.tutorial-dot.active {
    background: var(--accent-gold);
    box-shadow: 0 0 6px var(--accent-gold-glow);
    transform: scale(1.3);
}

.tutorial-nav {
    display: flex;
    gap: 0.5rem;
}

/* Stress Test Console Styling */
.stress-matrix {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    margin-top: 0.5rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.03);
}

.stress-matrix th, .stress-matrix td {
    padding: 0.4rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.stress-matrix th {
    background: rgba(255,255,255,0.02);
    color: var(--accent-gold);
}

.stress-matrix td.status-pass { color: #10B981; font-weight: bold; }
.stress-matrix td.status-fail { color: var(--accent-rust); font-weight: bold; }

