/* Channel Lab page - builds on ftt.css cards/tables and fomo.css tabs */

.ch-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ch-controls .fomo-tabs {
    flex-wrap: wrap;
}

.ch-hint {
    color: var(--muted);
    font-size: 0.72rem;
}

.ftt-table th.num,
.ftt-table td.num {
    text-align: right;
    font-family: 'Geist Mono', monospace;
    font-variant-numeric: tabular-nums;
}

.ch-source {
    font-weight: 500;
    white-space: nowrap;
}

.ch-sub {
    color: var(--muted);
    font-size: 0.7rem;
    margin-left: 4px;
}

.ch-good { color: var(--green); }
.ch-bad { color: var(--red); }
.ch-dim { color: var(--muted); }

.ch-chip {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 1px 5px;
    margin-right: 3px;
    border: 1px solid currentColor;
    border-radius: 4px;
    text-transform: uppercase;
}

.ch-chip.solana { color: var(--lime); }
.ch-chip.bsc { color: var(--yellow); }
.ch-chip.eth { color: var(--blue); }
.ch-chip.base { color: var(--blue); }
.ch-chip.robinhood { color: var(--purple); }
.ch-chip.evm { color: var(--muted); }

.ch-spark {
    display: block;
}

.ch-spark .bar {
    fill: var(--purple);
}

.ch-spark .bar.empty {
    fill: rgba(255, 255, 255, 0.08);
}

/* Heatmap: background alpha set inline from the 2x rate */
.ch-heat td.cell {
    text-align: center;
    font-family: 'Geist Mono', monospace;
    font-size: 0.75rem;
    min-width: 76px;
}

.ch-heat td.cell .n {
    color: var(--muted);
    font-size: 0.65rem;
    margin-left: 3px;
}

.ch-heat td.cell.thin {
    opacity: 0.45;
}

.ch-heat th {
    text-align: center;
}

.ch-heat th:first-child {
    text-align: left;
}

/* Latest calls feed */
.ch-live {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 0 var(--lime-soft);
    animation: ch-pulse 2s infinite;
    vertical-align: middle;
}

@keyframes ch-pulse {
    0% { box-shadow: 0 0 0 0 oklch(88% 0.22 128 / 0.5); }
    70% { box-shadow: 0 0 0 6px oklch(88% 0.22 128 / 0); }
    100% { box-shadow: 0 0 0 0 oklch(88% 0.22 128 / 0); }
}

.ch-latest-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ch-select {
    background: var(--bg-2);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    font-family: inherit;
    font-size: 0.75rem;
    padding: 5px 8px;
    border-radius: 8px;
    max-width: 220px;
}

.ch-latest td {
    vertical-align: top;
    font-size: 0.78rem;
}

.ch-latest tr.new td {
    animation: ch-flash 2.5s ease-out;
}

@keyframes ch-flash {
    from { background: oklch(88% 0.22 128 / 0.14); }
    to { background: transparent; }
}

.ch-token-sym {
    font-weight: 600;
}

.ch-ca {
    display: block;
    font-family: 'Geist Mono', monospace;
    font-size: 0.66rem;
    color: var(--muted);
    cursor: pointer;
}

.ch-ca:hover {
    color: var(--text);
}

.ch-price {
    display: block;
    color: var(--muted);
    font-size: 0.66rem;
}

.ch-x {
    font-weight: 600;
}

.ch-msg {
    color: var(--muted);
    font-size: 0.7rem;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.68rem;
    margin-right: 6px;
}

.ch-links a:hover {
    color: var(--lime);
}

.ch-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0 5px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: 1px;
}

.ch-badge.closed {
    color: var(--muted);
    border: 1px solid rgba(255,255,255,0.15);
}

.ch-badge.multi {
    color: var(--bg);
    background: var(--purple);
}

.ch-badge.stale {
    color: var(--orange);
    border: 1px solid currentColor;
}

.ch-source.link {
    cursor: pointer;
}

.ch-source.link:hover {
    color: var(--lime);
}
