/* "Net by coin" on the whale feed (src/assets/js/whale-net.js). Whale trades added up per coin
   over a stretch the reader picks. One bar a row carries bought against sold; the net is the
   one coloured number. Tokens: terminal-tokens.css. */
.cwn { margin: 0; }
.cwn[hidden] { display: none; }

/* The table's bar: how it reads (every trade, or by coin) and over what stretch of time. */
.cw-viewbar { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 10px 0 10px; }
.cw-viewseg { display: inline-flex; padding: 3px; border: 1px solid var(--tt-border, rgba(244,241,236,0.10)); border-radius: var(--tt-r-pill, 999px); background: var(--tt-panel-solid, #121111); }
.cw-viewbtn { height: 30px; padding: 0 14px; border: 0; border-radius: var(--tt-r-pill, 999px); background: none; color: var(--tt-text-muted, #A8A29B); font: 600 13px/1 var(--tt-sans, system-ui, sans-serif); cursor: pointer; }
.cw-viewbtn:hover { color: var(--tt-text, #F4F1EC); }
.cw-viewbtn.is-on { background: var(--tt-text, #F4F1EC); color: #141212; }
.cw-viewbtn:focus-visible, .cwn-win:focus-visible { outline: 2px solid var(--tt-accent, #EE5A2C); outline-offset: 2px; }
/* By coin: the totals stand where the rows were. */
#cw-feed.is-bycoin .cw-thead, #cw-feed.is-bycoin .cw-legend, #cw-feed.is-bycoin .cw-marks,
#cw-feed.is-bycoin #cw-trades-body, #cw-feed.is-bycoin #cw-coverage { display: none !important; }
/* Under a picked coin with no whale trade: what the rows below are. */
.cw-feed-rest { padding: 10px 12px; margin: 0 0 6px; border: 1px dashed var(--tt-border-strong, rgba(244,241,236,0.17)); border-radius: var(--tt-r, 6px); color: var(--tt-text-muted, #A8A29B); font-size: 13px; }
.cw-feed-rest b { color: var(--tt-text, #F4F1EC); font-weight: 600; }
.cwn-span { color: var(--tt-text-muted, #A8A29B); font: 500 12px/1.2 var(--tt-mono, ui-monospace, monospace); }
.cwn-wins { display: inline-flex; gap: 4px; }
.cwn-span[hidden] { display: none; }
.cwn-win { min-width: 38px; height: 28px; padding: 0 9px; border: 1px solid var(--tt-border, rgba(244,241,236,0.10)); border-radius: var(--tt-r-pill, 999px); background: none; color: var(--tt-text-muted, #A8A29B); font: 600 12px/1 var(--tt-mono, ui-monospace, monospace); cursor: pointer; }
.cwn-win:hover { color: var(--tt-text, #F4F1EC); border-color: var(--tt-border-strong, rgba(244,241,236,0.17)); }
.cwn-win.is-on { color: var(--tt-text, #F4F1EC); border-color: var(--tt-accent, #EE5A2C); background: var(--tt-accent-soft, rgba(238,90,44,0.13)); }
.cwn-custom { display: inline-flex; align-items: center; gap: 4px; }
.cwn-custom[hidden] { display: none; }
.cwn-custom input, .cwn-custom select { height: 28px; border: 1px solid var(--tt-border-strong, rgba(244,241,236,0.17)); border-radius: var(--tt-r, 6px); background: var(--tt-input-bg, #0F0E0E); color: var(--tt-text, #F4F1EC); font: 600 12px/1 var(--tt-mono, ui-monospace, monospace); }
.cwn-custom input { width: 54px; padding: 0 6px; text-align: right; }
.cwn-custom input.is-bad { border-color: var(--tt-down, #FA5772); }
.cwn-custom select { padding: 0 4px; }

.cwn-panel[hidden] { display: none; }
.cwn-table { border: 1px solid var(--tt-border, rgba(244,241,236,0.10)); border-radius: var(--tt-r-lg, 10px); background: var(--tt-panel-solid, #121111); overflow: hidden; }
.cwn.is-loading .cwn-body { opacity: .6; }
.cwn-headrow, .cwn-row { display: grid; grid-template-columns: minmax(72px, 1.1fr) minmax(90px, 2.2fr) 84px 84px 96px 56px; align-items: center; gap: 0 10px; padding: 0 12px; }
.cwn-headrow[hidden] { display: none; }
.cwn-headrow { height: 28px; color: var(--tt-text-dim-text, #8A847C); font: 600 10px/1 var(--tt-mono, ui-monospace, monospace); letter-spacing: .06em; text-transform: uppercase; }
.cwn-headrow button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: right; cursor: pointer; }
.cwn-headrow button:hover, .cwn-headrow button.is-on { color: var(--tt-text, #F4F1EC); }
.cwn-headrow button.is-on::after { content: ' \2193'; }
.cwn-row { width: 100%; min-height: 40px; border: 0; border-top: 1px solid var(--tt-border-soft, rgba(244,241,236,0.055)); background: none; color: var(--tt-text, #F4F1EC); text-align: left; font: inherit; }
button.cwn-row { cursor: pointer; }
button.cwn-row:hover { background: var(--tt-raised, #1A1818); }
.cwn-coin { display: flex; align-items: baseline; gap: 6px; min-width: 0; font: 600 13px/1.2 var(--tt-mono, ui-monospace, monospace); }
.cwn-since { color: var(--tt-text-dim-text, #8A847C); font: 500 10px/1.2 var(--tt-mono, ui-monospace, monospace); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cwn-num { text-align: right; font: 500 12.5px/1.2 var(--tt-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; color: var(--tt-text-muted, #A8A29B); }
.cwn-net { font-weight: 700; }
.cwn-row.is-up .cwn-net { color: var(--tt-up, #37D98A); }
.cwn-row.is-down .cwn-net { color: var(--tt-down-text, #FF7E8E); }
.cwn-nil { font-style: normal; color: var(--tt-text-dim-text, #8A847C); }
.cwn-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--tt-border-soft, rgba(244,241,236,0.055)); }
.cwn-bar.is-empty { background: repeating-linear-gradient(90deg, var(--tt-border, rgba(244,241,236,0.10)) 0 3px, transparent 3px 6px); }
.cwn-bar-b { background: var(--tt-up, #37D98A); }
.cwn-bar-s { background: var(--tt-down, #FA5772); }
.cwn-bar-b + .cwn-bar-s { box-shadow: -1px 0 0 var(--tt-panel-solid, #121111); }
.cwn-offnote { grid-column: 2 / -1; color: var(--tt-text-dim-text, #8A847C); font-size: 12px; }
.cwn-row.is-off .cwn-coin { color: var(--tt-text-muted, #A8A29B); }
.cwn-empty { margin: 0; padding: 12px; color: var(--tt-text-muted, #A8A29B); font-size: 13px; }
.cwn-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; }
.cwn-foot:empty { display: none; }
.cwn-more { padding: 0; border: 0; background: none; color: var(--tt-accent-text, #FF8A5C); font: 600 12px/1.4 var(--tt-sans, system-ui, sans-serif); cursor: pointer; }
.cwn-more[hidden], .cwn-note[hidden] { display: none; }
.cwn-note { margin: 0; color: var(--tt-text-dim-text, #8A847C); font-size: 12px; }

@media (max-width: 640px) {
    .cw-viewseg { width: 100%; }
    .cw-viewbtn { flex: 1; }
    .cwn-wins { width: 100%; }
    .cwn-win { flex: 1; }
    /* A phone keeps the coin, the bar and the net: the bar says bought against sold. */
    .cwn-headrow, .cwn-row { grid-template-columns: minmax(64px, 1fr) minmax(70px, 1.6fr) 88px; }
    .cwn-bought, .cwn-sold, .cwn-trades, .cwn-headrow [data-col="bought"], .cwn-headrow [data-col="sold"], .cwn-headrow [data-col="trades"] { display: none; }
    .cwn-since { display: none; }
}

/* The answer strip with nothing to say is not drawn: "No whale readings for the last hour yet"
   stood between the controls and the rows. */
body .cw-main .cw-strip.is-allabsent { display: none; }
/* The page is its table: the title takes one compact line. */
.cw-page .cl-slim { padding-top: 0; padding-bottom: 10px; margin-bottom: 0; }
.cw-page .cl-slim__title { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* THE CUT (owner, 2026-11-17: "way too much text"). Keys and helper controls that explained the table
   are not drawn: a row's type is said in the row, its marks carry their meaning as a tooltip, the
   stretch of time is the table bar's, and the chat box is already in the corner. The nodes stay for
   the scripts that fill them. */
#cw-legend, #cw-marks, #cw-window-chip, .cw-page [data-ev-section="whales_ai_bridge"] { display: none !important; }
.cw-feed-rest { padding: 6px 10px; border: 0; border-left: 2px solid var(--tt-border-strong, rgba(244,241,236,0.17)); border-radius: 0; font: 600 11px/1.3 var(--tt-mono, ui-monospace, monospace); letter-spacing: .04em; text-transform: uppercase; }
