/* ============================================================
   LIVE FEED — split layout: streaming trades + heatmap sidebar
   ============================================================ */
.app {
  grid-template-rows: 44px 28px 1fr 24px;
  height: 100vh;
  overflow: hidden;
}

.work {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.feed-col { display: flex; flex-direction: column; min-width: 0; }
.side-col { border-left: 1px solid var(--line-1); overflow: auto; background: var(--bg-1); }

/* Filter bar */
.feedbar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 6px 12px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line-1);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.feedbar__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 26px;
  background: var(--up-bg);
  border: 1px solid rgba(25,210,124,0.3);
  color: var(--up);
  border-radius: var(--r-2);
  font-size: var(--t-11);
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.feedbar__live .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 6px var(--up);
  animation: pulse 1.6s ease-in-out infinite;
}
.feedbar__count {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  color: var(--text-3);
}
.feedbar__count b { color: var(--text-1); font-weight: 600; }

/* Stream */
.stream {
  flex: 1;
  overflow: auto;
  background: var(--bg-1);
}
.stream-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-12);
}
.stream-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg-1);
  text-align: right;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.stream-table thead th.left { text-align: left; }
.stream-table tbody td {
  padding: 0 10px;
  height: 30px;
  border-bottom: 1px solid var(--line-1);
  white-space: nowrap;
  color: var(--text-1);
  vertical-align: middle;
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-11);
}
.stream-table tbody td.left { text-align: left; }
.stream-table tbody tr.buy td:first-child { box-shadow: inset 3px 0 0 var(--up); }
.stream-table tbody tr.sell td:first-child { box-shadow: inset 3px 0 0 var(--down); }
.stream-table tbody tr.whale td { background: linear-gradient(90deg, rgba(200,255,58,0.04), transparent 30%); }
.stream-table tbody tr:hover td { background: var(--bg-2); }
.stream-table tbody tr.flash-up td { animation: flash-up 1.2s ease-out; }
.stream-table tbody tr.flash-down td { animation: flash-down 1.2s ease-out; }
@keyframes flash-up {
  0% { background: var(--up-bg-strong); }
  100% { background: transparent; }
}
@keyframes flash-down {
  0% { background: var(--down-bg-strong); }
  100% { background: transparent; }
}

.stream-table .side {
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: var(--t-11);
  letter-spacing: 0.04em;
}
.stream-table .up { color: var(--up); }
.stream-table .down { color: var(--down); }

.stream-table .ago {
  color: var(--text-3);
  font-size: var(--t-10);
}

.stream-table .tok {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  color: var(--text-1);
  text-align: left;
}
.stream-table .tok .img {
  width: 16px; height: 16px;
  border-radius: 50%;
  font-size: 9px;
  display: grid; place-items: center;
  color: white;
}
.stream-table .tok small { font-family: var(--font-mono); color: var(--text-3); font-weight: 400; font-size: 9px; margin-left: 2px; }

.stream-table .maker {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-2);
  text-align: left;
}
.stream-table .maker .tag {
  display: inline-block;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 2px;
  height: 14px;
  line-height: 14px;
}
.stream-table .tx {
  color: var(--text-3);
  font-size: var(--t-10);
}
.stream-table .tx a { color: var(--info); }

.stream-table .big td { color: var(--text-1); font-weight: 600; font-size: var(--t-12); }
.stream-table .big td:nth-child(5) { font-size: var(--t-13); }

/* Sidebar - heatmap, top whales etc */
.side-section { border-bottom: 1px solid var(--line-1); }
.side-section__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 12px 6px;
  background: var(--bg-1);
}
.side-section__head h3 {
  margin: 0;
  font-size: var(--t-10);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  white-space: nowrap;
}
.side-section__body { padding: 0 12px 12px; }

/* Heat grid */
.heatmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 4px 12px 12px;
}
.heat-tile {
  aspect-ratio: 1.6 / 1;
  border-radius: var(--r-2);
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line-1);
  color: white;
  position: relative;
  overflow: hidden;
}
.heat-tile__name {
  font-size: var(--t-10);
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.heat-tile__pct {
  font-size: var(--t-10);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Top whale wallets list */
.whale-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  font-size: var(--t-11);
  border-bottom: 1px dashed var(--line-1);
}
.whale-row:last-child { border-bottom: none; }
.whale-row__rank {
  font-family: var(--font-mono);
  font-size: var(--t-10);
  color: var(--text-3);
  text-align: right;
}
.whale-row__addr {
  font-family: var(--font-mono);
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.whale-row__addr .lbl {
  font-size: 9px;
  color: var(--text-3);
  background: var(--bg-3);
  padding: 0 4px;
  border-radius: 2px;
}
.whale-row__pnl {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* Pressure meter */
.pressure {
  display: flex;
  height: 28px;
  border-radius: var(--r-2);
  overflow: hidden;
  margin-bottom: 4px;
  border: 1px solid var(--line-1);
}
.pressure__buy {
  background: var(--up-bg-strong);
  color: var(--up);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 700;
  border-right: 1px solid var(--line-1);
}
.pressure__sell {
  background: var(--down-bg-strong);
  color: var(--down);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 700;
}

/* Stat row */
.statline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: var(--t-11);
  border-bottom: 1px dashed var(--line-1);
  white-space: nowrap;
  gap: 8px;
}
.statline:last-child { border-bottom: none; }
.statline__k { color: var(--text-3); white-space: nowrap; }
.statline__v { font-family: var(--font-mono); color: var(--text-1); font-weight: 600; white-space: nowrap; }
.statline__v.up { color: var(--up); }
.statline__v.down { color: var(--down); }

.ico-svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
