/* Analysis page — tab navigation between cards */

.analysis-tab-content {
    max-width: 640px;
}

.analysis-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 16px;
    max-width: 640px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.analysis-tabs::-webkit-scrollbar {
    display: none;
}

.analysis-tab {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.analysis-tab:hover {
    background: var(--surface);
    color: var(--fg);
}

.analysis-tab.active {
    background: var(--fg);
    color: var(--bg);
    font-weight: 600;
}

/* Tab content — hide inactive panels */
.analysis-tab-content .pnl-card {
    display: none;
}

.analysis-tab-content .pnl-card.tab-active {
    display: flex;
}

/* Print: show all panels, hide tabs */
@media print {
    .analysis-tabs {
        display: none !important;
    }

    .analysis-tab-content .pnl-card {
        display: flex !important;
    }
}
