:root {
  --bg: #0b0d10; --panel: #12161b; --line: #1f262e; --fg: #e7ecf1; --muted: #8b97a5; --faint: #5b6673;
  --buy: #34d399; --sell: #f87171; --launch: #fbbf24; --live: #60a5fa; --flash: rgba(52, 211, 153, .14);
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace; --sans: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.45 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 16px; background: rgba(11, 13, 16, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--buy); animation: pulse 2s ease-out infinite; }
.dot.warn { background: var(--launch); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .dot.on { animation: none; } }
.state { margin: 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.state b { color: var(--fg); font-weight: 500; }

.wrap { max-width: 980px; margin: 0 auto; padding: 12px 16px 24px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.tools select, .tools input[type=search] { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 0; }
.tools select { flex: 1 1 180px; max-width: 260px; }
.tools input[type=search] { flex: 1 1 160px; max-width: 240px; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { background: transparent; border: 0; border-radius: 6px; padding: 5px 10px; color: var(--muted); cursor: pointer; font-size: 13px; }
.seg button.on { background: var(--line); color: var(--fg); }
.chk { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; cursor: pointer; }
.counts { margin: 4px 0 8px; color: var(--faint); font-size: 12px; }

.feed { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 9px 4px 9px 10px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.row[data-side=buy] { border-left-color: var(--buy); }
.row[data-side=sell] { border-left-color: var(--sell); }
.row[data-side=launch] { border-left-color: var(--launch); }
.row.new { animation: flash 6s ease-out; }
@keyframes flash { 0%, 30% { background: var(--flash); } 100% { background: transparent; } }
.when { font-family: var(--mono); font-size: 12px; color: var(--muted); grid-row: span 2; display: flex; flex-direction: column; }
.when .ago { color: var(--faint); font-size: 11px; }
.what { overflow-wrap: anywhere; }
.what .who { font-weight: 600; }
.verb { padding: 0 4px; }
.row[data-side=buy] .verb { color: var(--buy); }
.row[data-side=sell] .verb { color: var(--sell); }
.row[data-side=launch] .verb { color: var(--launch); }
.what .coin { font-weight: 500; }
.amt { font-family: var(--mono); font-size: 13px; text-align: right; white-space: nowrap; grid-row: span 2; }
.row[data-side=buy] .amt { color: var(--buy); }
.row[data-side=sell] .amt { color: var(--sell); }
.sub { grid-column: 2; font-size: 12px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 0 10px; }
.sub a { color: var(--muted); }
.tag { display: inline-block; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; color: var(--muted); }
.tag.live { color: var(--live); border-color: rgba(96, 165, 250, .4); }
.day { list-style: none; padding: 14px 4px 6px; font-size: 12px; color: var(--faint); border-bottom: 1px solid var(--line); }
.more { display: block; margin: 14px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 16px; cursor: pointer; }
.empty { padding: 24px 4px; color: var(--muted); }
.locked { margin: 48px auto; max-width: 420px; text-align: center; color: var(--muted); }
.locked h2 { color: var(--fg); font-size: 18px; font-weight: 600; }
.foot { max-width: 980px; margin: 0 auto; padding: 0 16px 32px; color: var(--faint); font-size: 12px; }

@media (max-width: 560px) {
  .top { padding: 10px 12px; }
  .wrap { padding: 10px 12px 20px; }
  .row { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 2px 8px; padding-left: 8px; }
  .tools select, .tools input[type=search] { flex: 1 1 100%; max-width: none; }
  .seg { flex: 1 1 100%; }
  .seg button { flex: 1; padding: 5px 4px; }
  .when { font-size: 11px; }
  .amt { font-size: 12px; }
}
body { overflow-x: hidden; }
