#liveBody { max-width:720px; margin:0 auto; padding:0 0 24px; display:flex; flex-direction:column; min-height:calc(100vh - 53px); }
.live-content-flex:not(.hidden) { display:flex; flex-direction:column; flex:1; min-height:0; }
.pill.capped { background:rgba(232,163,61,.15); color:#e8a33d; }

.live-signed-out { max-width:420px; margin:80px auto; text-align:center; padding:0 20px; }
.live-signed-out h2 { font-size:18px; margin-bottom:10px; }
.live-signed-out p { color:var(--text-faint); font-size:13px; margin-bottom:18px; }

/* -------------------------------------------------- sticky header: always-visible running R */
.live-sticky-header {
  position:sticky; top:0; z-index:5; background:var(--bg); border-bottom:1px solid var(--border);
  padding:12px 20px; display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px;
}
.live-r-pill { display:flex; flex-direction:column; gap:1px; }
.live-r-pill .live-r-label { font-size:9.5px; text-transform:uppercase; letter-spacing:.5px; color:var(--text-faint); }
.live-r-pill .live-r-value { font-size:17px; font-weight:700; font-family:'JetBrains Mono',monospace; }
.live-r-value.pos { color:var(--up); } .live-r-value.neg { color:var(--down); }
.live-header-spacer { flex:1; }
.live-icon-btn {
  background:var(--bg-raised); border:1px solid var(--border-strong); border-radius:7px; color:var(--text-dim);
  padding:6px 10px; font:inherit; font-size:11.5px; cursor:pointer; display:flex; align-items:center; gap:6px;
}
.live-icon-btn:hover { background:var(--bg-hover); }
.live-icon-btn.on { color:var(--accent); border-color:var(--accent); }
.live-mini-stats { display:flex; gap:10px; font-size:10.5px; color:var(--text-faint); }
.live-mini-stats b { color:var(--text); font-weight:600; }

/* -------------------------------------------------- the chat itself */
.live-chat-outer { position:relative; flex:1; display:flex; flex-direction:column; min-height:300px; }
.live-chat-scroll {
  flex:1; min-height:0; overflow-y:auto; padding:16px 20px 8px;
  background-image:radial-gradient(var(--border) 1px, transparent 1px);
  background-size:18px 18px; background-position:-9px -9px;
}
.live-date-divider {
  text-align:center; margin:14px 0; position:relative;
}
.live-date-divider span {
  background:var(--bg-raised); border:1px solid var(--border); color:var(--text-faint);
  font-size:10.5px; padding:3px 12px; border-radius:12px; text-transform:uppercase; letter-spacing:.4px;
}

.live-feed { display:flex; flex-direction:column; gap:8px; }
.live-bubble-row { display:flex; }
.live-bubble-row.buy { justify-content:flex-start; }
.live-bubble-row.sell { justify-content:flex-end; }

.live-bubble {
  max-width:86%; background:var(--bg-raised); border:1px solid var(--border); border-radius:14px;
  padding:9px 12px 7px; box-shadow:0 1px 1px rgba(0,0,0,.04);
}
.live-bubble-row.buy .live-bubble { border-top-left-radius:3px; border-left:3px solid var(--up); }
.live-bubble-row.sell .live-bubble { border-top-right-radius:3px; border-right:3px solid var(--down); }
.live-bubble.status-won { background:rgba(46,204,130,.08); }
.live-bubble.status-lost { background:rgba(245,69,92,.07); }
.live-bubble.status-hunting, .live-bubble.status-open { animation:live-pulse 2.2s ease-in-out infinite; }
@keyframes live-pulse { 0%,100% { box-shadow:0 0 0 0 rgba(31,143,255,0); } 50% { box-shadow:0 0 0 3px rgba(31,143,255,.12); } }

@keyframes live-slide-in { from { opacity:0; transform:translateY(10px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
.live-bubble-row.live-new .live-bubble { animation:live-slide-in .32s ease-out; }
.live-bubble-row.live-flash .live-bubble { outline:2px solid var(--accent); outline-offset:-1px; transition:outline-color 1.4s; }
.live-bubble-row.live-flash.live-flash-fade .live-bubble { outline-color:transparent; }

.live-bubble-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.live-bubble-top .pair { font-weight:700; font-size:13.5px; }
.dir-badge { font-size:10px; padding:1px 7px; border-radius:9px; text-transform:uppercase; letter-spacing:.4px; font-weight:700; }
.dir-badge.buy { background:rgba(46,204,130,.15); color:var(--up); }
.dir-badge.sell { background:rgba(245,69,92,.15); color:var(--down); }
.live-bubble-top .spacer { flex:1; }
.live-bubble-r { font-size:12.5px; font-weight:700; font-family:'JetBrains Mono',monospace; }

.live-attempt-line { font-size:11.5px; color:var(--text-dim); margin-top:5px; display:flex; gap:10px; flex-wrap:wrap; font-family:'JetBrains Mono',monospace; }
.live-attempt-line .lbl { color:var(--text-faint); font-family:inherit; }
.live-hunting-line { font-size:11px; color:var(--text-faint); margin-top:4px; }

.live-bubble-meta { display:flex; justify-content:flex-end; align-items:center; gap:6px; margin-top:4px; }
.live-bubble-time { font-size:10px; color:var(--text-faint); }

.live-jump-btn {
  position:absolute; bottom:12px; left:50%; transform:translateX(-50%); z-index:4;
  background:var(--accent); color:#fff; border:none; border-radius:16px; padding:7px 16px;
  font:inherit; font-size:11.5px; font-weight:600; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.2);
}
.live-jump-btn.hidden { display:none; }

.live-daily-section { padding:18px 20px 0; }

@media (max-width:640px) {
  .live-bubble { max-width:94%; }
  .live-sticky-header { padding:10px 14px; }
  .live-chat-scroll { padding:14px 14px 8px; }
  .live-daily-section { padding:16px 14px 0; }
}
