:root { color-scheme: dark; }

* { box-sizing: border-box; }

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #070b14;
  color: #eaf0ff;
}

header {
  padding: 16px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { margin: 0; font-size: inherit; font-weight: 800; letter-spacing: 0.2px; }
.sub { opacity: .75; font-size: 13px; }

.wrap {
  padding: 10px 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.12);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255,255,255,.03);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ee59d;
  box-shadow: 0 0 12px rgba(46,229,157,.35);
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #eaf0ff;
  outline: none;
  font-size: 14px;
}

.tablewrap {
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  overflow-x: auto;
  overflow-y: hidden;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

th, td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

th {
  font-size: 12px;
  opacity: .85;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #0b1220;
  position: sticky;
  top: 0;
  z-index: 1;
}

tr:hover td { background: rgba(255,255,255,.03); }
tr:last-child td { border-bottom: none; }

th:nth-child(1), td:nth-child(1) { width: 42%; }
th:nth-child(2), td:nth-child(2) { width: 16%; }
th:nth-child(3), td:nth-child(3) { width: 14%; }
th:nth-child(4), td:nth-child(4) { width: 18%; }
th:nth-child(5), td:nth-child(5) { width: 10%; }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
  letter-spacing: .01em;
}

.last, .delta, .updated {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.delta.pos { color: #2ee59d; font-weight: 700; }
.delta.neg { color: #ff6b6b; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: #eaf0ff;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { background: rgba(255,255,255,.06); }

.right { text-align: right; }
a { color: inherit; text-decoration: none; }

.wm {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-18deg);
  font-size: 32px;
  font-weight: 800;
  white-space: nowrap;
}



.muted { opacity: .65; }
.small { font-size: 12px; opacity: .72; }

@media (max-width: 780px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .wrap {
    padding: 10px 10px 24px;
  }
}

.index-label { display:block; font-size:12px; opacity:.72; font-weight:400; white-space:normal; }
.index-quality { font-size:10px; font-weight:500; margin-left:5px; opacity:.75; }

/* Keep the original dense table on phones, with prices visible without panning.
   The symbol itself remains the detail link; only the duplicate View control is omitted. */
@media (max-width: 600px) {
  table { min-width: 0; table-layout: fixed; }
  th, td { padding: 10px 6px; font-size: 10px; white-space: normal; overflow-wrap: anywhere; }
  th:nth-child(1), td:nth-child(1) { width: 40%; }
  th:nth-child(2), td:nth-child(2) { width: 22%; }
  th:nth-child(3), td:nth-child(3) { width: 20%; }
  th:nth-child(4), td:nth-child(4) { width: 18%; }
  th:nth-child(5), td:nth-child(5) { display: none; }
  td.last, td.delta { font-size: 12px; white-space: nowrap; overflow-wrap: normal; }
  .index-label { font-size: 9px; }
  .index-quality { display: block; margin: 3px 0 0; font-size: 9px; }
}
