/* ============================================ */
/* STRATEGIES PAGE v3 — Charts + Table          */
/* Scatter, Equity Curves, AI Verdict, Table    */
/* ============================================ */

.strat-v3 {
    --cat-momentum: #fb923c;
    --cat-reversal: #a78bfa;
    --cat-volatility: #60a5fa;
    --cat-quality: #06b6d4;
    --cat-value: #facc15;
    --cat-composite: #94a3b8;
    --cat-growth: #f472b6;
    --cat-income: #22c55e;
    --cat-hybrid: #1d9bf0;
    --cat-defensive: #a855f7;
    --cat-contrarian: #f97316;
    --cat-mean_reversion: #34d399;
    --glass-bg: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.08);
    --glass-hover: rgba(255,255,255,0.07);
}

/* Hero gold accents — now in shared-nav.css */

.strat-v3 .page-container {
    max-width: 2000px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
}
.strat-v3 .page-hero {
    margin-bottom: 32px;
    padding-top: 36px;
    padding-left: 14px;
    padding-right: 14px;
}
.strat-v3 .page-hero-desc {
    margin-bottom: 8px;
}
/* Hero-right regime card */
.hero-regime {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 18px 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
}

/* ============================================ */
/* REGIME STRIP                                 */
/* ============================================ */
.regime-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}
.regime-strip-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.regime-strip-badge {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-sm);
    font-weight: 200;
    letter-spacing: 0.08em;

    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.25);
}
.regime-strip-badge.risk-on { background: rgba(34,197,94,0.15); color: #22c55e; border-color: rgba(34,197,94,0.25); }
.regime-strip-badge.normal { background: rgba(59,130,246,0.15); color: #60a5fa; border-color: rgba(59,130,246,0.25); }
.regime-strip-badge.defensive { background: rgba(245,158,11,0.15); color: #f59e0b; border-color: rgba(245,158,11,0.25); }
.regime-strip-badge.crisis { background: rgba(239,68,68,0.15); color: #ef4444; border-color: rgba(239,68,68,0.25); }
.regime-strip-label {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.62);
    font-weight: 200;
}
.regime-strip-signals {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-sm);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.62);
}
.regime-strip-signals .check { color: #22c55e; }
.regime-strip-signals .cross { color: #ef4444; }
.regime-signal {
    white-space: nowrap;
}
.regime-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-sm);
    font-weight: 200;
    line-height: 1.6;
    margin-top: 6px;
    display: flex;
    gap: 6px 20px;
    flex-wrap: wrap;
}
.regime-mode {
    color: rgba(255, 255, 255, 0.28);
    transition: color 0.3s;
}
.regime-mode strong {
    font-weight: 300;
    color: rgba(255,255,255,0.35);
}
.regime-mode.active {
    color: rgba(255, 255, 255, 0.72);
}
.regime-mode.active strong {
    color: rgba(255,255,255,0.92);
    font-weight: 400;
}

/* ============================================ */
/* CHARTS ROW — Scatter + Equity side by side   */
/* ============================================ */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 16px;
    margin-bottom: 28px;
}

.chart-panel {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px 20px 12px;
    backdrop-filter: blur(12px);
}
.chart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.chart-panel-title {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-md);
    font-weight: 200;
    color: #fff;
    margin: 0;
}
.scatter-axis-selectors {
    display: flex;
    gap: 8px;
    align-items: center;
}
.scatter-axis-select-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
.scatter-axis-label {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.05em;
}
.scatter-axis-select {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 200;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e2e8f0;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 20px;
}
.scatter-axis-select:hover {
    border-color: rgba(255,255,255,0.2);
}
.scatter-axis-select:focus-visible {
    border-color: rgba(212, 175, 55, 0.8);
    outline: 2px solid rgba(212, 175, 55, 0.8);
    outline-offset: 1px;
}
.scatter-axis-select option {
    background: #0c101a;
    color: #e2e8f0;
}

/* Chart containers */
.chart-wrap {
    position: relative;
}
.scatter-wrap {
    height: 360px;
}
.equity-wrap {
    height: 360px;
}

/* Range tabs */
.range-tabs {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 2px;
}
.range-tab {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 200;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.range-tab:hover {
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.06);
}
.range-tab.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Equity legend */
.equity-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    transition: opacity 0.15s;
}
.legend-item:hover { opacity: 0.8; }
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================ */
/* STRATEGY SELECTOR — Chips                    */
/* ============================================ */
.strategy-selector {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
}
.selector-label {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 8px;

    letter-spacing: 0.04em;
}
.selector-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.selector-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.selector-action-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 200;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    transition: all 0.2s ease;
}
.selector-action-btn:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
}
.selector-action-btn:focus-visible { outline: 2px solid rgba(212, 175, 55, 0.8); outline-offset: 2px; }
.selector-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}
.selector-group-label {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 200;
    letter-spacing: 0.04em;
    white-space: nowrap;
    min-width: 100px;
}
.selector-group-count {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.62);
    margin-left: 2px;
}
.selector-chip {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-md);
    font-weight: 200;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.selector-chip:hover {
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.04);
}
.selector-chip.selected {
    color: #fff;
    border-color: var(--chip-color, rgba(255,255,255,0.3));
    background: color-mix(in srgb, var(--chip-color, #60a5fa) 15%, transparent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--chip-color, #60a5fa) 20%, transparent);
}
.selector-chip.spy-chip {
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
}
.selector-chip.spy-chip.selected {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

/* ============================================ */
/* AI VERDICT                                   */
/* ============================================ */
.ai-verdict-section {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.ai-verdict-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.35), rgba(212, 175, 55, 0.25), transparent);
}
.ai-verdict-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.ai-verdict-icon {
    font-size: var(--text-md);
    color: rgba(212, 175, 55, 0.8);
}
.ai-verdict-title {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-md);
    font-weight: 200;
    color: #fff;
    margin: 0;
}
.ai-verdict-badge {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 200;

    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.1);
    color: rgba(212, 175, 55, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.15);
}
.ai-verdict-body {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-sm);
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
}
.ai-verdict-body strong {
    color: #fff;
    font-weight: 200;
}
.ai-verdict-body .verdict-highlight {
    display: inline;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 200;
}
.verdict-highlight.positive {
    background: rgba(34,197,94,0.12);
    color: #22c55e;
}
.verdict-highlight.negative {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
}
.verdict-highlight.neutral {
    background: rgba(59,130,246,0.12);
    color: #60a5fa;
}
.ai-verdict-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: var(--text-md);
}
.ai-verdict-timestamp {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 10px;
}

/* ============================================ */
/* STRATEGY TABLE                               */
/* ============================================ */
.table-section {
    margin-bottom: 24px;
}
.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.table-title {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-md);
    font-weight: 200;
    color: #fff;
    margin: 0;
}
.table-filters {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    padding: 2px;
}
.table-filter {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 200;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.table-filter:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.06); }
.table-filter.active { background: rgba(255,255,255,0.08); color: #fff; }

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
}

.strat-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}
.strat-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}
.strat-th {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 200;

    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.62);
    padding: 10px 12px;
    text-align: left;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: default;
    user-select: none;
}
.strat-th.r { text-align: right; }
.strat-th.sortable { cursor: pointer; }
.strat-th.sortable:hover { color: rgba(255, 255, 255, 0.62); }
.strat-th.sorted-asc::after { content: ' \u25B2'; font-size: var(--text-xs); }
.strat-th.sorted-desc::after { content: ' \u25BC'; font-size: var(--text-xs); }

.strat-table tbody tr {
    cursor: pointer;
    transition: background 0.12s;
}
.strat-table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}
.strat-table tbody tr.selected-row {
    background: rgba(212, 175, 55, 0.05);
}

.strat-table td {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 200;
    padding: 9px 12px;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.strat-table td.r { text-align: right; }
.strat-table td.strat-name-cell {
    font-weight: 200;
    color: #fff;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.strat-table td .cat-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.strat-table td .cat-name {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, 0.62);
    text-transform: capitalize;
}
.strat-table td.holdings-cell {
    white-space: nowrap;
    overflow: hidden;
    max-width: 220px;
}
.holding-chip {
    display: inline-block;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: var(--text-xs);
    font-family: 'DM Sans', sans-serif;
    font-weight: 200;
    color: #e2e8f0;
    margin-right: 3px;
}
.holding-more {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.62);
}
.strat-table td .val-pos { color: #22c55e; }
.strat-table td .val-neg { color: #ef4444; }
.strat-table td .val-neutral { color: rgba(255, 255, 255, 0.62); }

/* ============================================ */
/* DISCLAIMER                                   */
/* ============================================ */
.backtest-disclaimer {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
    max-width: 800px;
    margin: 32px auto 0;
    line-height: 1.5;
}

/* ============================================ */
/* LOADING SPINNER                              */
/* ============================================ */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */
@media (max-width: 1024px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
    .scatter-wrap, .equity-wrap {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .strat-v3 .page-container {
        padding: 1rem 0.75rem 3rem;
    }
    .regime-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 14px;
    }
    .regime-strip-signals {
        flex-wrap: wrap;
        gap: 8px;
    }
    .scatter-wrap, .equity-wrap {
        height: 260px;
    }
    .chart-panel {
        padding: 12px 14px 10px;
    }
    .chart-panel-title {
        font-size: var(--text-md);
    }
    .strat-table td, .strat-th {
        padding: 7px 8px;
        font-size: var(--text-md);
    }
    .selector-chips {
        gap: 6px;
    }
    .selector-chip {
        font-size: var(--text-xs);
        padding: 4px 8px;
    }
    .selector-group-label {
        min-width: auto;
        width: 100%;
    }
    .ai-verdict-section {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .scatter-wrap, .equity-wrap {
        height: 220px;
    }
    .charts-row {
        gap: 10px;
    }
}

/* ============================================ */
/* SIDE PANEL (Strategy detail)                 */
/* ============================================ */
.panel-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s;
}
.panel-overlay.open { opacity: 1; visibility: visible; }

.side-panel {
    position: fixed;
    top: 60px; right: 0;
    width: min(480px, 95vw);
    height: calc(100vh - 60px);
    background: rgba(15,10,30,0.98);
    backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.06) transparent;
}
.side-panel.open { transform: translateX(0); }
.side-panel-top {
    position: sticky; top: 0; z-index: 2;
    background: rgba(15,10,30,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px 20px 0;
}
.preview-header { position: relative; padding-bottom: 12px; }
.preview-close {
    position: absolute; top: 0; right: 0;
    background: none; border: none; color: rgba(255, 255, 255, 0.62);
    font-size: var(--text-md); cursor: pointer; padding: 4px 8px;
}
.preview-close:hover { color: #fff; }
.preview-close:focus-visible { outline: 2px solid rgba(212, 175, 55, 0.7); outline-offset: 2px; }

.strat-panel-name {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-lg); font-weight: 200; color: #fff;
    margin-bottom: 4px;
}
.strat-panel-badges { margin-bottom: 6px; }
.strat-panel-desc {
    font-size: var(--text-xs); color: rgba(255, 255, 255, 0.62);
    line-height: 1.4; margin-bottom: 12px;
}
.strat-panel-metrics {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-bottom: 12px;
}
.strat-panel-metric { text-align: center; min-width: 56px; }
.strat-panel-metric-value {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-md); font-weight: 200; color: #e2e8f0;
}
.strat-panel-metric-value.green { color: var(--cat-quality, #22c55e); }
.strat-panel-metric-value.red { color: #ef4444; }
.strat-panel-metric-label {
    font-size: var(--text-xs); color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.04em;
}

/* Panel Tabs */
.panel-tabs {
    display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.panel-tab {
    background: none; border: none; color: rgba(255, 255, 255, 0.62);
    padding: 12px 16px; font-size: var(--text-base); cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    font-weight: 200;
}
.panel-tab:hover { color: rgba(255,255,255,0.9); }
.panel-tab.active { color: #fff; border-bottom-color: var(--cat-momentum); }

.panel-tab-content { padding: 16px 20px; display: none; }
.panel-tab-content.active { display: block; }
.panel-section { margin-bottom: 20px; }
.panel-section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs); font-weight: 200; color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

/* Strategy logic box */
.strat-logic-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 12px 14px;
}
.strat-logic-title {
    font-size: var(--text-xs); font-weight: 200; color: rgba(255, 255, 255, 0.62);
    margin-bottom: 6px;
}
.strat-logic-text {
    font-size: var(--text-xs); color: rgba(255,255,255,0.75);
    line-height: 1.5; margin: 0;
}

/* Holdings preview */
.strat-holdings-preview-table {
    width: 100%; border-collapse: collapse;
    font-size: var(--text-base); font-family: 'DM Sans', sans-serif;
    font-weight: 200;
}
.strat-holdings-preview-table th {
    text-align: left; color: rgba(255, 255, 255, 0.62);
    font-weight: 200; padding: 4px 8px; font-size: var(--text-xs);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.strat-holdings-preview-table td {
    padding: 5px 8px; color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.strat-holdings-preview-table td.r { text-align: right; }

/* Holdings History month selector */
.hh-month-select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 200;
    cursor: pointer;
    outline: none;
}
.hh-month-select:hover { border-color: rgba(255,255,255,0.2); }
.hh-month-select:focus-visible { border-color: rgba(212, 175, 55, 0.8); outline: 2px solid rgba(212, 175, 55, 0.8); outline-offset: 1px; }
.hh-month-select option { background: #0c101a; color: #e2e8f0; }

/* Focus-visible for interactive elements */
.range-tab:focus-visible,
.table-filter:focus-visible,
.selector-chip:focus-visible,
.sp-range-tab:focus-visible,
.panel-tab:focus-visible { outline: 2px solid rgba(212, 175, 55, 0.8); outline-offset: 2px; }

/* Tab header stats */
.tab-header-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.tab-header-stat { text-align: center; }
.tab-header-stat-label {
    font-size: var(--text-xs); color: rgba(255, 255, 255, 0.62);

}
.tab-header-stat-value {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-md); font-weight: 200; color: #e2e8f0;
}

/* Panel chart */
.sp-chart-wrap { height: 200px; margin-bottom: 10px; }
.sp-range-tab {
    background: none; border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255, 255, 255, 0.62); padding: 8px 12px;
    font-size: var(--text-xs); border-radius: 4px; cursor: pointer;
}
.sp-range-tab.active {
    background: rgba(255,255,255,0.08); color: #fff;
    border-color: rgba(255,255,255,0.15);
}

/* Annual returns table */
.annual-returns-table {
    width: 100%; border-collapse: collapse;
    font-size: var(--text-xs); font-family: 'DM Sans', sans-serif;
    font-weight: 200;
}
.annual-returns-table th {
    text-align: left; color: rgba(255, 255, 255, 0.62);
    padding: 4px 8px; font-size: var(--text-xs);    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.annual-returns-table td {
    padding: 5px 8px; color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* Regime performance grid */
.regime-perf-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.regime-perf-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 10px; text-align: center;
}
.regime-perf-name {
    font-size: var(--text-xs); color: rgba(255, 255, 255, 0.62);
    text-transform: capitalize; margin-bottom: 4px;
}
.regime-perf-value {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-md); font-weight: 200;
}
