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

:root {
    --bg: #f4f6f9;
    --white: #ffffff;
    --dark: #0f0f23;
    --primary: #4361ee;
    --green: #00b894;
    --red: #d63031;
    --text: #2d3436;
    --muted: #636e72;
    --border: #dfe6e9;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 10px;
    --nexion: #4361ee;
    --nexion-glow: rgba(67,97,238,0.25);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* ── BRAND LOGO ── */
.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--nexion) 0%, #7209b7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
    box-shadow: 0 2px 8px var(--nexion-glow);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    color: white;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.brand-sub {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── LOGIN ── */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 50%, #1a0533 100%);
}

.login-container { width: 100%; max-width: 420px; padding: 24px; }

.login-card {
    background: var(--white);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.login-logo-wrap { display: flex; justify-content: center; margin-bottom: 16px; }

.login-brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--nexion) 0%, #7209b7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: white;
    box-shadow: 0 8px 24px var(--nexion-glow);
}

.login-title { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 4px; letter-spacing: -0.5px; }
.login-subtitle { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.login-desc { color: var(--muted); font-size: 15px; margin-bottom: 32px; line-height: 1.6; }
.login-note { color: var(--muted); font-size: 12px; margin-top: 16px; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--nexion), #7209b7); color: white; }
.btn-large { padding: 14px 32px; font-size: 16px; width: 100%; }
.btn-green { background: var(--green); color: white; }
.btn-red { background: var(--red); color: white; }
.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); padding: 7px 16px; font-size: 13px; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark { background: transparent; color: var(--muted); border: 1px solid var(--border); padding: 10px 16px; font-size: 13px; font-weight: 500; }
.btn-outline-dark:hover { background: #f4f6f9; color: var(--text); }

/* ── HEADER ── */
.header {
    background: var(--dark);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-right { display: flex; align-items: center; gap: 12px; }

/* ── SESSION INFO ── */
.session-info {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}
.session-icon { font-size: 13px; }

/* ── PILLS ── */
.pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pill-green { background: rgba(0,184,148,0.2); color: var(--green); border: 1px solid var(--green); }
.pill-red { background: rgba(214,48,49,0.2); color: var(--red); border: 1px solid var(--red); }

/* ── MAIN LAYOUT ── */
.main { max-width: 1200px; margin: 0 auto; padding: 24px; }

/* ── CONTROLS ── */
.controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.last-run-label { color: var(--muted); font-size: 13px; margin-left: auto; }

/* ── CARDS ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.card-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.card-value { font-size: 28px; font-weight: 700; color: var(--dark); }

/* ── SECTION ── */
.section { margin-bottom: 32px; }
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge {
    background: var(--primary);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
}
.capital-limit-badge {
    background: rgba(67,97,238,0.1);
    color: var(--nexion);
    border: 1px solid rgba(67,97,238,0.3);
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

/* ── TAB BAR ── */
.tab-bar {
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 60px;
    z-index: 90;
}
.tab-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 4px;
}
.tab-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: rgba(255,255,255,0.85); }
.tab-btn.active { color: white; border-bottom-color: var(--nexion); }

/* ── PRINCIPLES GRID ── */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.principle-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-left: 4px solid var(--nexion);
}
.principle-icon { font-size: 24px; margin-bottom: 8px; }
.principle-title { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.principle-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── STRATEGY LIVE STATS ── */
.strategy-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.stat-chip {
    background: #f4f6f9;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    color: var(--muted);
}
.strategy-live-stats {
    display: flex;
    gap: 0;
    background: #f8f9fb;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 8px;
}
.live-stat {
    flex: 1;
    padding: 8px 10px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.live-stat:last-child { border-right: none; }
.live-stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 3px; }
.live-stat-value { font-size: 14px; font-weight: 700; color: var(--dark); }
.no-trades-yet { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 8px; text-align: center; padding: 8px; background: #f8f9fb; border-radius: 6px; }
.strategy-card.strategy-disabled { opacity: 0.65; border-color: var(--red); }
.strategy-status-badge.disabled { background: rgba(214,48,49,0.12); color: var(--red); }

/* ── REPORTS ── */
.report-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.report-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 18px;
}
.report-icon { font-size: 36px; flex-shrink: 0; }
.report-info { flex: 1; }
.report-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.report-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.report-btn { flex-shrink: 0; white-space: nowrap; }

/* ── TYPE TAGS ── */
.type-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}
.type-tag.intraday { background: rgba(214,48,49,0.1); color: var(--red); }
.type-tag.swing { background: rgba(67,97,238,0.1); color: var(--nexion); }

/* ── WARN COLOR ── */
.warn { color: #e17055; }
.card-sub { font-size: 16px; color: var(--muted); font-weight: 400; }

/* ── CLAUDE USAGE ── */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 12px;
}
.usage-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.usage-card-highlight {
    border-color: var(--nexion);
    background: linear-gradient(135deg, #f0f3ff 0%, #fff 100%);
}
.usage-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.usage-value { font-size: 24px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.usage-sub { font-size: 11px; color: var(--muted); }
.usage-note {
    font-size: 12px;
    color: var(--muted);
    padding: 10px 14px;
    background: #f8f9fb;
    border-radius: 8px;
    border: 1px solid var(--border);
    line-height: 1.6;
}
.usage-note a { color: var(--nexion); text-decoration: none; }
.usage-note a:hover { text-decoration: underline; }
.billing-link {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--nexion);
    text-decoration: none;
    background: rgba(67,97,238,0.08);
    border: 1px solid rgba(67,97,238,0.2);
    padding: 3px 10px;
    border-radius: 8px;
}
.billing-link:hover { background: rgba(67,97,238,0.15); }

/* ── STRATEGIES GRID ── */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.strategy-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.strategy-card.strategy-active {
    border-color: var(--green);
    box-shadow: 0 2px 16px rgba(0,184,148,0.15);
}
.strategy-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.strategy-icon { font-size: 22px; flex-shrink: 0; }
.strategy-title-wrap { display: flex; flex-direction: column; gap: 4px; }
.strategy-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.strategy-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
}
.strategy-status-badge.active { background: rgba(0,184,148,0.15); color: var(--green); }
.strategy-status-badge.idle { background: rgba(99,110,114,0.12); color: var(--muted); }
.strategy-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.strategy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
}
.strategy-meta span {
    background: #f4f6f9;
    border-radius: 6px;
    padding: 3px 8px;
    border: 1px solid var(--border);
}

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 14px;
}
.table th {
    background: #f8f9fb;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #f8f9fb; }

.dir-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.dir-badge.long { background: rgba(0,184,148,0.15); color: var(--green); }
.dir-badge.short { background: rgba(214,48,49,0.15); color: var(--red); }

.source-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.source-badge.agent { background: rgba(67,97,238,0.12); color: var(--nexion); }
.source-badge.manual { background: rgba(99,110,114,0.12); color: var(--muted); }

/* ── JOURNAL ── */
.journal-container { display: flex; flex-direction: column; gap: 20px; }
.journal-day {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.journal-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8f9fb;
    border-bottom: 1px solid var(--border);
}
.journal-date {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}
.journal-day-stats { display: flex; gap: 12px; }
.journal-stat {
    font-size: 12px;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2px 10px;
}

.type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.type-badge.entry { background: rgba(67,97,238,0.1); color: var(--nexion); }
.type-badge.exit { background: rgba(214,48,49,0.1); color: var(--red); }

/* ── DECISIONS ── */
.decisions-list {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.decision-item { border-bottom: 1px solid var(--border); }
.decision-item:last-child { border-bottom: none; }
.decision-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.decision-header:hover { background: #f8f9fb; }
.decision-time { font-size: 12px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.decision-summary { font-size: 13px; color: var(--text); flex: 1; }
.decision-toggle { color: var(--muted); font-size: 11px; flex-shrink: 0; }
.decision-body { padding: 12px 18px 16px; background: #fafbfc; border-top: 1px solid var(--border); }
.decision-detail { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.decision-reasoning { font-size: 13px; color: var(--text); line-height: 1.6; }
.decision-orders { font-size: 13px; color: var(--primary); margin-top: 8px; }

/* ── UTILS ── */
.positive { color: var(--green); font-weight: 600; }
.negative { color: var(--red); font-weight: 600; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 32px; font-size: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .strategies-grid { grid-template-columns: 1fr; }
    .journal-day-stats { display: none; }
}

@media (max-width: 600px) {
    .main { padding: 16px; }
    .header { padding: 0 16px; }
    .brand-name { font-size: 16px; }
    .brand-sub { display: none; }
    .session-info { display: none !important; }
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .card-value { font-size: 22px; }
    .controls { gap: 8px; }
    .last-run-label { width: 100%; margin-left: 0; }
    .login-card { padding: 36px 24px; }
    .capital-limit-badge { display: none; }
}

/* ── MONITORING CARD (v0.2) ── */
.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.monitoring-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.monitoring-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.monitoring-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* ── BACKTEST TAB (v0.3) ── */
.backtest-controls {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.backtest-config {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.config-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.config-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f8f9fb;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    min-width: 200px;
}
.config-select:focus { outline: 2px solid var(--nexion); outline-offset: 1px; }

.bt-status-label {
    font-size: 13px;
    color: var(--muted);
    margin-left: auto;
    align-self: center;
    white-space: nowrap;
}

.bt-progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.bt-progress-fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, var(--nexion), #7209b7);
    border-radius: 4px;
    animation: bt-sweep 1.4s ease-in-out infinite;
}

@keyframes bt-sweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.bt-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.bt-skipped td { opacity: 0.55; }

.bt-confidence-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(67,97,238,0.1);
    color: var(--nexion);
    white-space: nowrap;
}

.bt-confidence-badge.skipped {
    background: rgba(99,110,114,0.1);
    color: var(--muted);
}

.backtest-note {
    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}
.backtest-note strong { color: var(--text); }
.backtest-note em { color: var(--nexion); font-style: normal; font-weight: 600; }

/* ── EXPECTANCY CARDS (v0.3) ── */
.expectancy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.expectancy-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-top: 4px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.expectancy-card.status-healthy {
    border-top-color: var(--green);
    box-shadow: 0 2px 16px rgba(0,184,148,0.12);
}
.expectancy-card.status-warning {
    border-top-color: #e17055;
    box-shadow: 0 2px 16px rgba(225,112,85,0.12);
}
.expectancy-card.status-disabled {
    border-top-color: var(--red);
    box-shadow: 0 2px 16px rgba(214,48,49,0.12);
    opacity: 0.75;
}
.expectancy-card.status-building {
    border-top-color: var(--primary);
}

.exp-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.exp-icon { font-size: 24px; flex-shrink: 0; }

.exp-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.exp-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.exp-confidence {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

.exp-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #f8f9fb;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.exp-metric {
    padding: 10px 12px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.exp-metric:nth-child(2) { border-right: none; }
.exp-metric:nth-child(3) { border-right: 1px solid var(--border); border-bottom: none; }
.exp-metric:nth-child(4) { border-right: none; border-bottom: none; }

.exp-metric-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
    margin-bottom: 4px;
}

.exp-metric-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.exp-status {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: rgba(99,110,114,0.08);
    color: var(--muted);
}
.exp-status.positive { background: rgba(0,184,148,0.1); color: var(--green); }
.exp-status.negative { background: rgba(214,48,49,0.1); color: var(--red); }
.exp-status.warn { background: rgba(225,112,85,0.1); color: #e17055; }

.exp-insight {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
    padding: 6px 0 0;
    border-top: 1px solid var(--border);
}

/* ── BACKTEST RESPONSIVE ── */
@media (max-width: 768px) {
    .backtest-controls { flex-direction: column; align-items: stretch; }
    .config-select { min-width: auto; width: 100%; }
    .bt-status-label { margin-left: 0; }
    .expectancy-grid { grid-template-columns: 1fr; }
}
