:root {
  --bg: #0b0f17;
  --card: #111827;
  --muted: #6b7280;
  --text: #e5e7eb;
  --accent: #22d3ee;
  --good: #34d399;
  --bad: #f87171;
  --border: #1f2937;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; background: var(--bg); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }

.header {
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0));
  position: sticky; top: 0; z-index: 10;
}
.title { font-weight: 700; font-size: 20px; letter-spacing: .3px; }
.pill { padding: 6px 10px; border-radius: 999px; border:1px solid var(--border); background:#0f172a; }
.pill-muted { color: var(--muted); }

.grid {
  display:grid; gap:16px; padding:16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.card h2 { margin: 0 0 10px 0; font-size: 16px; color: #cbd5e1; }

.metrics { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px; }
.metric { background: #0f172a; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.metric .label { font-size: 12px; color: var(--muted); }
.metric .value { margin-top: 6px; font-size: 18px; font-weight: 700; }

.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding:8px 10px; border-bottom: 1px dashed var(--border); font-size: 14px; }
.table thead th { color: #93c5fd; text-align: left; font-weight: 600; }

.signals { display:flex; flex-direction: column; gap:10px; }
.signal { display:flex; justify-content:space-between; align-items:center; background:#0f172a; border:1px solid var(--border); border-radius:12px; padding:10px 12px; }
.signal-left { display:flex; gap:10px; align-items:baseline; }
.signal-sym { font-weight: 800; letter-spacing: .3px; }
.signal-sub { font-size:12px; color: var(--muted); }
.signal-right { text-align:right; }
.signal-score { font-weight: 800; }
.signal-meta { color: var(--muted); font-size: 11px; margin-top: 2px; max-width: 380px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.trades { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.trades li { background:#0f172a; border:1px solid var(--border); border-radius:12px; padding:8px 10px; font-size: 13px; }
