.bg-coindesk {
    background-color: #0057a8;
    color: #fff;
}

.btn-coindesk {
    background-color: #0057a8;
    border-color: #0057a8;
    color: #fff;
}

.btn-coindesk:hover {
    background-color: #004490;
    border-color: #004490;
    color: #fff;
}

.copy-from-select {
    width: auto;
    min-width: 190px;
}

.empty-state-icon {
    font-size: 3rem;
}

/* ── fifo_tax_summary.html ─────────────────────────────────────────── */
.ts-phase-b-badge {
    font-size: 0.7rem;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 4px;
    padding: 1px 6px;
    font-weight: 600;
}
.ts-flag-high   { border-left: 4px solid #dc3545; background: #fff5f5; }
.ts-flag-medium { border-left: 4px solid #f59e0b; background: #fffbeb; }
.ts-flag-low    { border-left: 4px solid #10b981; background: #f0fdf4; }

.ts-ai-panel {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 12px;
    color: white;
}
.ts-ai-panel .ts-ai-narrative p {
    color: #e0e7ff;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}
.ts-ai-panel .ts-ai-narrative p:last-child { margin-bottom: 0; }

.ts-ai-result-box {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
}
.ts-ai-btn {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border: none;
    color: white;
    font-weight: 600;
}
.ts-ai-btn:hover { background: linear-gradient(135deg, #6d28d9, #4338ca); color: white; }
.ts-ai-badge { background: #4c1d95; font-size: 0.7rem; }
.ts-ai-label-analysis { color: #a78bfa; }
.ts-ai-label-flags    { color: #fbbf24; }
.ts-ai-label-tax      { color: #34d399; }
.ts-ai-label-actions  { color: #93c5fd; }
.ts-ai-text-tax       { color: #d1fae5; }
.ts-ai-text-actions   { color: #bfdbfe; }
.ts-ai-subtitle       { color: #c4b5fd; }
.ts-ai-spinner        { color: #a78bfa; }

.ts-section-divider { border: none; border-top: 2px solid #e5e7eb; margin: 2rem 0; }

.ts-cause-card { border-radius: 8px; padding: 1rem; }
.ts-cause-card.ts-normal    { background: #fff5f5; border-left: 4px solid #dc3545; }
.ts-cause-card.ts-usdt      { background: #fff8e1; border-left: 4px solid #f59e0b; }
.ts-cause-card.ts-arbitrage { background: #eff6ff; border-left: 4px solid #3b82f6; }

.ts-legal-note {
    font-size: 0.8rem;
    color: #555;
    background: #fffbe6;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 0.7rem 1rem;
}
.ts-excluded-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
}
.ts-tax-card { border-left: 4px solid; border-radius: 0 8px 8px 0; }
.ts-tax-card.ts-profit { border-color: #198754; background: #f0faf4; }
.ts-tax-card.ts-loss   { border-color: #dc3545; background: #fff5f5; }
.ts-tax-card.ts-tax    { border-color: #0d6efd; background: #f0f4ff; }
.ts-table td, .ts-table th { font-size: 0.82rem; padding: 0.3rem 0.55rem; }
.ts-pnl-pos { color: #198754; font-weight: 600; }
.ts-pnl-neg { color: #dc3545; font-weight: 600; }
.ts-small-badge { font-size: 0.72rem; }
.ts-loss-ratio-danger  { background-color: #dc3545 !important; color: #fff; }
.ts-loss-ratio-warning { background-color: #ffc107 !important; color: #000; }
.ts-loss-ratio-neutral { background-color: #6c757d !important; color: #fff; }
