:root {
    /* Color Palette - Charly Neurolab Corporate */
    --bg-base: #f4f5f7;
    --bg-surface: #ffffff;
    --bg-surface-hover: #fff7ed;
    --glass-border: #e2e8f0;
    
    /* Accents (Pop-out semantic colors) */
    --accent-primary: #1e293b;     /* Graphite */
    --accent-secondary: #2563eb;   /* Tech blue */
    --accent-brand: #ea580c;       /* Charly Orange */
    --accent-success: #059669;     /* Forest green (low salience) */
    --accent-warning: #dc2626;     /* Desaturated red (high salience) */
    
    /* Typography (Reduced glare contrast) */
    --text-primary: #1e293b;       /* Graphite (reduces glare vs #000) */
    --text-secondary: #475569;     /* Dark grey */
    --text-muted: #64748b;         /* Mid grey */
    
    /* Spacing & Effects */
    --radius-lg: 12px;              
    --radius-md: 12px;
    --shadow-glass: 0 2px 8px rgba(0,0,0,0.04);
    --transition: all 0.2s ease-in-out;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Base Corporate Card Class */
.glass-panel {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--glass-border);
}

.app-container {
    display: flex;
    height: 100vh;
    padding: 24px;
    gap: 24px;
}

/* Sidebar */
.sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-right: 1px solid var(--glass-border);
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.brand img {
    max-width: 160px;
    height: auto;
}

.brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.brand span {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-links li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid var(--accent-brand);
    background: #ffffff;
}

.nav-links li svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-brand);
    transition: var(--transition);
}

.nav-links li:hover {
    background: var(--bg-surface-hover);
    color: var(--accent-brand);
}

.nav-links li.active {
    background: var(--accent-brand);
    color: #ffffff;
    border-color: var(--accent-brand);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}

.nav-links li.active svg {
    stroke: #ffffff;
}

/* Sidebar Version Badge */
.sidebar-version-badge {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
}

.sidebar-version-badge span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    opacity: 0.6;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    border-radius: var(--radius-lg);
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-radius: var(--radius-lg);
    background: #000000;
}

.header-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.header-title p {
    font-size: 0.875rem;
    color: #a1a1aa;
    font-family: 'JetBrains Mono', monospace;
}

.topbar-logo {
    height: 54px;
    max-height: 58px;
    width: auto;
    object-fit: contain;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 50px;
    color: #ffffff;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--accent-success);
}

/* Views */
.views-container {
    flex-grow: 1;
    position: relative;
}

.view {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.kpi-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
}

.kpi-card:hover {
    transform: translateY(-2px);
}

.kpi-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.kpi-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
}

.text-success { color: var(--accent-success); }
.text-warning { color: var(--accent-warning); }

.kpi-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Charts */
.charts-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.chart-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.chart-card.full-width {
    width: 100%;
}

.chart-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding-bottom: 8px;
}

.chart-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-container.large {
    height: 400px;
}

/* Insights List */
.insights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.insights-list li {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
}

.insight-icon {
    width: 4px;
    flex-shrink: 0;
}

.insight-icon.success { background: var(--accent-success); }
.insight-icon.warning { background: var(--accent-warning); }

.insight-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.insight-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Scientific Validation Box */
.validation-box {
    background: var(--bg-surface);
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--glass-border);
}

.validation-box h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.validation-box p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.validation-box strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Toggle Switch UI */
.priming-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-surface-hover);
    transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-primary);
    transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: var(--bg-base);
}

/* Insights Table UI */
.insights-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 1px; /* for subtle shadow border effect without border */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.insights-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.insights-table th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding: 16px;
    border-bottom: 1px solid var(--bg-base);
    background: rgba(255,255,255,0.02);
}

.insights-table td {
    padding: 16px;
    border-bottom: 1px solid var(--bg-base);
    color: var(--text-primary);
    font-size: 0.9rem;
    vertical-align: top;
}

.insights-table tr:last-child td {
    border-bottom: none;
}

.delta-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

.delta-positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.delta-neutral {
    background: var(--bg-surface-hover);
    color: var(--text-secondary);
}

.delta-negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.insight-label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.insight-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ==========================================================================
   Stimulus Telemetry View & Live HUD Styles
   ========================================================================== */

.telemetry-split-container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1200px) {
    .telemetry-split-container {
        grid-template-columns: 1fr;
    }
}

/* Video Panel */
.video-player-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
}

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

.video-sublabel {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

.layer-switcher {
    display: flex;
    background: var(--bg-base);
    padding: 4px;
    border-radius: 6px;
    gap: 4px;
}

.layer-btn {
    border: 1.5px solid var(--accent-brand);
    background: #ffffff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
}

.layer-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--accent-brand);
}

.layer-btn.active {
    background: var(--accent-brand);
    color: #ffffff;
    border-color: var(--accent-brand);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.layer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease-in-out;
}

.layer-video.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.video-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.time-label {
    color: var(--text-muted);
    margin-right: 6px;
}

.mono-value {
    font-weight: 700;
    color: var(--text-primary);
}

.mono-muted {
    color: var(--text-muted);
}

/* Telemetry HUD Panel */
.telemetry-hud-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.nis-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-base);
    padding: 6px 12px;
    border-radius: 6px;
}

.nis-label {
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

.nis-score {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-secondary);
}

.nis-status-pill {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nis-status-pill.status-good {
    background: rgba(5, 150, 105, 0.15);
    color: #059669;
}

.nis-status-pill.status-neutral {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.nis-status-pill.status-warn {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

.hud-meters-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hud-meter-item {
    background: var(--bg-base);
    padding: 14px;
    border-radius: 6px;
}

.meter-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.meter-name {
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

.meter-val {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

.progress-track {
    position: relative;
    height: 8px;
    background: var(--bg-surface-hover);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.08s linear;
}

.fill-blue { background: #2563eb; }
.fill-amber { background: #d97706; }
.fill-emerald, .fill-green { background: #059669; }
.fill-purple { background: #7c3aed; }

.benchmark-range {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(15, 23, 42, 0.15);
    border-left: 1px solid var(--text-muted);
    border-right: 1px solid var(--text-muted);
    pointer-events: none;
}

.avg-pointer {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: #ffffff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.8), 0 0 2px rgba(255, 255, 255, 0.9);
    z-index: 3;
    pointer-events: none;
    transition: left 0.08s linear;
}

.avg-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    padding: 1px 5px;
    margin-left: 6px;
    background: rgba(37, 99, 235, 0.15);
    color: #2563eb;
    border-radius: 3px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.meter-sub {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
}

.meter-status {
    font-weight: 600;
}

.meter-status.status-good { color: #059669; }
.meter-status.status-neutral { color: var(--text-secondary); }
.meter-status.status-warn { color: #dc2626; }

.live-diagnostic-box {
    background: var(--bg-base);
    padding: 14px 18px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent-secondary);
    box-shadow: var(--shadow-sm);
}

.diag-title {
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.diag-text {
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
}

/* Timeline Channel Filters */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.channel-filter-group {
    display: flex;
    background: var(--bg-base);
    padding: 4px;
    border-radius: 6px;
    gap: 4px;
    flex-wrap: wrap;
}

.channel-filter-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.channel-filter-btn:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}

.channel-filter-btn.active {
    background: var(--accent-primary);
    color: var(--bg-base);
}

.channel-filter-btn.active .leg-dot {
    box-shadow: 0 0 0 2px var(--bg-base);
}

.leg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.leg-dot.blue { background: #2563eb; }
.leg-dot.amber { background: #d97706; }
.leg-dot.emerald { background: #059669; }
.leg-dot.purple { background: #7c3aed; }
.leg-dot.rose { background: #e11d48; }

/* Lift Table UI */
.lift-table-container {
    display: flex;
    gap: 32px;
    align-items: center;
}

.lift-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.lift-row {
    display: grid;
    grid-template-columns: 140px 1fr 1fr 1fr 140px;
    gap: 16px;
    align-items: center;
    border-radius: 8px;
    padding: 4px;
}

.lift-row.lift-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.lift-cell {
    text-align: center;
    padding: 10px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lift-cell.attr-col {
    justify-content: flex-start;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text-secondary);
    background: transparent;
    padding-left: 0;
}

.pill-control {
    background: rgba(225, 29, 72, 0.1);
    color: #be123c;
}

.pill-priming {
    background: rgba(79, 70, 229, 0.1);
    color: #4338ca;
}

.pill-lift {
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
}

/* Highlight for Lift above average */
.lift-row.above-avg .pill-lift {
    border: 2px solid #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
    font-weight: 700;
}

.lift-annotation {
    width: 250px;
    padding-left: 20px;
    border-left: 2px solid #22c55e;
    position: relative;
}

.lift-annotation::before {
    content: "→";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: #22c55e;
    background: var(--bg-surface);
    font-size: 1.2rem;
}

.lift-avg-title {
    color: #22c55e;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 8px;
}

.lift-avg-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ==========================================================================
   Benchmark Analysis (Control & Priming) Cards & Tables
   ========================================================================== */
.benchmark-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.benchmark-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(30, 41, 59, 0.08);
    color: var(--text-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.benchmark-tag.priming-tag {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.benchmark-insight-box {
    background: #f8fafc;
    border-left: 4px solid var(--accent-secondary);
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.benchmark-insight-box p {
    margin: 0;
    width: 100%;
}

.benchmark-insight-box strong {
    color: var(--text-primary);
}

.benchmark-layout-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: center;
}

@media (max-width: 1024px) {
    .benchmark-layout-grid {
        grid-template-columns: 1fr;
    }
}

.benchmark-chart-pane {
    width: 100%;
    min-height: 420px;
}

.benchmark-table-pane {
    background: var(--bg-base);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--glass-border);
}

.bm-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.bm-row {
    display: grid;
    grid-template-columns: 110px 1fr 1fr 85px;
    gap: 10px;
    align-items: center;
    padding: 4px 0;
    transition: var(--transition);
}

.bm-row.bm-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.bm-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 7px 10px;
    border-radius: 16px;
    font-weight: 600;
}

.bm-cell.attr-name {
    justify-content: flex-start;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    background: transparent;
    padding-left: 4px;
}

.bm-brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.bm-brand-dot.charly { background: #ea580c; }
.bm-brand-dot.puma { background: #0284c7; }

.bm-cell.brand-col {
    background: transparent;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.bm-cell.charly-head { color: #ea580c; }
.bm-cell.puma-head { color: #0284c7; }
.bm-cell.win-head { color: var(--text-muted); }

.pill-bm-charly {
    background: rgba(234, 88, 12, 0.12);
    color: #c2410c;
}

.pill-bm-puma {
    background: rgba(2, 132, 199, 0.12);
    color: #0369a1;
}

.pill-bm-charly.highlight-win {
    background: rgba(234, 88, 12, 0.22);
    color: #ea580c;
    border: 1.5px solid #ea580c;
    font-weight: 700;
}

.win-cell {
    background: transparent;
    padding: 0;
}

.winner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    width: 100%;
}

.winner-badge.puma {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.25);
}

.winner-badge.charly {
    background: rgba(234, 88, 12, 0.15);
    color: #ea580c;
    border: 1px solid rgba(234, 88, 12, 0.4);
    box-shadow: 0 0 8px rgba(234, 88, 12, 0.2);
}

.charly-win-row {
    background: rgba(234, 88, 12, 0.04);
    border-radius: 6px;
}

/* Benchmark Interactive Toggle */
.bm-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-base);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.bm-toggle-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
}

.bm-toggle-label.active {
    color: var(--text-primary);
    font-weight: 700;
}

.bm-delta {
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 6px;
    padding: 1px 4px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    display: inline-block;
    animation: fadeIn 0.3s ease;
}

.bm-delta.pos {
    color: #15803d;
    background: rgba(34, 197, 94, 0.15);
}

.bm-delta.neg {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   PARADIGMA CHARLY MULTI-BRAND & SHELF TEST STYLES
   ========================================================================== */

.paradigm-badge-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.paradigm-badge-status.positive {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.paradigm-badge-status.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.paradigm-pill-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.paradigm-pill-btn {
    background: var(--bg-base);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.paradigm-pill-btn:hover {
    color: var(--text-primary);
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.paradigm-pill-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.paradigm-drilldown-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 24px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .paradigm-drilldown-grid {
        grid-template-columns: 1fr;
    }
}

.paradigm-left-pane,
.paradigm-right-pane {
    display: flex;
    flex-direction: column;
}

.sub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sub-card-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.ranking-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(234, 88, 12, 0.12);
    color: #ea580c;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(234, 88, 12, 0.25);
}

.formula-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-base);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
}

/* Shopper Funnel */
.shopper-funnel-box {
    background: var(--bg-base);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 14px;
}

.funnel-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.funnel-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.funnel-step {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 8px 10px;
    text-align: center;
    flex: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.f-lbl {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.f-val {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.f-arrow {
    color: var(--text-muted);
    font-weight: bold;
    font-size: 0.9rem;
}

.funnel-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: flex-end;
}

.funnel-footer strong {
    color: #0f172a;
    font-family: 'JetBrains Mono', monospace;
}

/* Leaderboard Table */
.paradigm-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.paradigm-leaderboard-table th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: left;
    padding: 10px 8px;
    border-bottom: 2px solid var(--glass-border);
    background: rgba(241, 245, 249, 0.5);
}

.paradigm-leaderboard-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

.paradigm-leaderboard-table tr:hover {
    background: rgba(248, 250, 252, 0.8);
}

@keyframes rowGlider {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.paradigm-leaderboard-table tbody tr {
    animation: rowGlider 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes badgePop {
    0% { transform: scale(0.92); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.badge-animate {
    animation: badgePop 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.paradigm-leaderboard-table tr.charly-highlight-row {
    background: rgba(234, 88, 12, 0.05);
    border-left: 3px solid #ea580c;
}

.col-rank {
    width: 45px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
}

.col-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    color: #0f172a;
}

.col-metric {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #334155;
}

/* Brand Badges */
.brand-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.brand-badge.charly {
    background: rgba(234, 88, 12, 0.12);
    color: #ea580c;
    border: 1px solid rgba(234, 88, 12, 0.3);
}

.brand-badge.nike {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.2);
}

.brand-badge.adidas {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.brand-badge.puma {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.25);
}

.brand-badge.asics {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Behavioral Role Pills */
.role-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    white-space: nowrap;
}

.role-pill.role-gem {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-pill.role-trap {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.role-pill.role-worst {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.role-pill.role-neutral {
    background: var(--bg-base);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

/* Neuro Recommendations */
.neuro-insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

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

.neuro-rec-box {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent-brand);
    border-radius: 10px;
    padding: 16px;
    position: relative;
    box-shadow: var(--shadow-glass);
}

.rec-icon {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.neuro-rec-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.neuro-rec-box p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Methodology Glossary Collapsible */
.methodology-glossary {
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.methodology-glossary[open] {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.methodology-glossary summary {
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.methodology-glossary summary:hover {
    color: var(--accent-secondary);
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--glass-border);
}

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

.glossary-item {
    background: var(--bg-base);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 10px 12px;
}

.glossary-term {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.glossary-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   MÓDULO: IDENTIDAD VISUAL (BRANDGUARD™ / BRAND BOOK)
   ========================================================================== */

.brandguard-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

/* Header Card */
.brandguard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.brandguard-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brandguard-gauge-wrap {
    position: relative;
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brandguard-gauge-svg {
    width: 86px;
    height: 86px;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(234, 88, 12, 0.12);
    stroke-width: 6.5;
}

.gauge-progress {
    fill: none;
    stroke: #ea580c;
    stroke-width: 6.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-text {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

.brandguard-header-titles h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.brandguard-header-titles .bg-main-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
}

.brandguard-header-titles .bg-subtext {
    font-size: 0.82rem;
    color: #64748b;
}

.brandguard-header-right {
    text-align: right;
}

.brandguard-header-right h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #0f172a;
    margin-bottom: 4px;
}

.brandguard-header-right p {
    font-size: 0.84rem;
    color: #64748b;
}

/* Grid de 5 Dimensiones */
.brandguard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .brandguard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.brandguard-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 22px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.brandguard-card:hover {
    transform: translateY(-2px);
    border-color: rgba(234, 88, 12, 0.4);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.08);
}

.brandguard-card.active {
    border-color: #ea580c;
    background: rgba(234, 88, 12, 0.02);
    box-shadow: 0 0 0 1px #ea580c, 0 8px 24px rgba(234, 88, 12, 0.1);
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.dim-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(234, 88, 12, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dim-score-kpi {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
}

.dim-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 5px;
}

.dim-desc {
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.45;
}

/* Deep-Dive Detail Panel */
.dimension-detail-panel {
    animation: rowGlider 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.detail-card-inner {
    background: #ffffff;
    border: 1.5px solid #ea580c;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 28px rgba(234, 88, 12, 0.09);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(234, 88, 12, 0.15);
}

.detail-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    background: #ea580c;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
}

.detail-title-wrap h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.detail-close-btn {
    background: rgba(15, 23, 42, 0.06);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.detail-close-btn:hover {
    background: rgba(234, 88, 12, 0.15);
    color: #ea580c;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.detail-item {
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 14px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}

.detail-value {
    font-size: 0.88rem;
    color: #0f172a;
    line-height: 1.5;
}

.detail-value.highlight {
    color: #ea580c;
    font-weight: 600;
}

/* Bottom Control Area (2 Columns) */
.brandguard-bottom {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .brandguard-bottom {
        grid-template-columns: 1fr;
    }
}

.comm-objective-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.comm-header-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.comm-toggle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.comm-toggle-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 11px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.comm-toggle-btn:hover {
    border-color: #ea580c;
    color: #ea580c;
}

.comm-toggle-btn.active {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

.comm-verdict-wrap h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.comm-verdict-wrap p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #64748b;
}

.diagnostic-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.diagnostic-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 800;
    color: #ea580c;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.diagnostic-body {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.55;
    margin-bottom: 16px;
}

.diagnostic-divider {
    height: 1px;
    background: #f1f5f9;
    margin-bottom: 16px;
}

.actionable-body {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ea580c;
    line-height: 1.5;
}

/* ========== Executive Insights Panel ========== */
.exec-insights-panel {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--bg-surface);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
}

.exec-insights-panel summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    list-style: none;
    user-select: none;
}

.exec-insights-panel summary::-webkit-details-marker { display: none; }

.exec-insights-panel summary::before {
    content: '▸';
    font-size: 0.9rem;
    color: var(--accent-brand);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.exec-insights-panel[open] summary::before {
    transform: rotate(90deg);
}

.exec-insights-panel[open] summary {
    border-bottom-color: var(--glass-border);
}

.exec-insights-panel summary:hover {
    background: linear-gradient(135deg, #ffedd5 0%, #fff7ed 100%);
}

.exec-insights-panel .insights-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.insights-badge.badge-ok {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.insights-badge.badge-warn {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
}

.insights-badge.badge-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.exec-insights-body {
    padding: 20px 24px;
    animation: fadeSlideIn 0.3s ease;
}

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

.insights-score-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.insights-score-big {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-brand);
    line-height: 1;
}

.insights-score-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.insights-score-status {
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 2px;
}

.insights-findings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.insight-item {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--accent-brand);
    transition: var(--transition);
}

.insight-item:hover {
    background: #fff7ed;
    transform: translateX(2px);
}

.insight-icon {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--accent-brand);
}

.insight-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.insight-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.insights-verdict {
    margin-top: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 0.82rem;
    line-height: 1.6;
}

.insights-verdict strong {
    color: #fb923c;
}

.insights-verdict-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fb923c;
    margin-bottom: 6px;
}

.insights-mini-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    font-size: 0.78rem;
}

.insights-mini-table th {
    text-align: left;
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.insights-mini-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-secondary);
}

.insights-mini-table tr:last-child td {
    border-bottom: none;
}

.insights-mini-table .val-ok { color: #059669; font-weight: 700; }
.insights-mini-table .val-warn { color: #b45309; font-weight: 700; }
.insights-mini-table .val-bad { color: #dc2626; font-weight: 700; }
