:root { --bg:#0f1115; --panel:#171a21; --line:#2a2f3a; --fg:#e6e8ee; --muted:#9aa3b2;
  --accent:#4ade80; --accent2:#3b82f6; --err:#f87171; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background:var(--bg); color:var(--fg); }
h1 { font-size:20px; margin:0 0 4px; }
.muted { color:var(--muted); }
.msg { min-height:1.4em; margin-top:12px; }
.msg.error { color:var(--err); }

.card { max-width:360px; margin:12vh auto; background:var(--panel); border:1px solid var(--line);
  border-radius:12px; padding:24px; }
.stack { display:flex; flex-direction:column; gap:12px; margin-top:12px; }
label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--muted); }
input, select { background:#0d0f14; color:var(--fg); border:1px solid var(--line);
  border-radius:8px; padding:9px 10px; font-size:15px; }
input[type=checkbox] { width:auto; }
button, .btn { background:var(--accent2); color:#fff; border:0; border-radius:8px;
  padding:10px 14px; font-size:15px; cursor:pointer; text-decoration:none; display:inline-block; }
button:disabled { opacity:.5; cursor:not-allowed; }
.link { background:none; color:var(--muted); padding:4px; }
.btn-link { display:inline-block; background:var(--accent2); color:#fff; border-radius:8px;
  padding:10px 14px; font-size:15px; text-decoration:none; margin-top:8px; }

.topbar { display:flex; justify-content:space-between; align-items:center;
  padding:12px 20px; border-bottom:1px solid var(--line); }
.wrap { max-width:1100px; margin:20px auto; padding:0 16px; display:flex; flex-direction:column; gap:16px; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:16px; }
.filters { border:1px solid var(--line); border-radius:8px; padding:10px 12px; }
.filters legend { color:var(--muted); font-size:12px; padding:0 6px; }
.frow { display:flex; align-items:center; gap:8px; margin:6px 0; }
.frow label { flex-direction:row; align-items:center; gap:6px; color:var(--fg); font-size:14px; }
.frow input[type=number] { width:120px; }
.unit { color:var(--muted); font-size:13px; }

.bar { height:14px; background:#0d0f14; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.bar-fill { height:100%; width:0; background:var(--accent); transition:width .3s; }

.actions { display:flex; gap:10px; margin:10px 0; }
.tablewrap { overflow-x:auto; }
table { border-collapse:collapse; width:100%; font-size:13px; }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); font-weight:600; }
tr.confluence td:nth-child(6) { color:var(--accent); font-weight:600; }

th.sortable { cursor:pointer; user-select:none; white-space:nowrap; }
th.sortable:hover { color:var(--fg); }
td a, td a:visited, td a:hover, td a:active { color:var(--accent); text-decoration:none; font-weight:600; }
td a:hover { text-decoration:underline; }
#results-table td:nth-child(5) { color:#fff; }   /* Mcap column white */
.charts { display:flex; flex-direction:column; gap:16px; margin-top:12px; }
.chart-item img { width:100%; max-width:1100px; border:1px solid var(--line);
  border-radius:8px; background:#fff; display:block; }
.chart-item strong { color:var(--fg); }
