:root{
  --bg:#0b0f14;
  --panel:#101826;
  --text:#e6edf3;
  --muted:#94a3b8;
  --line: rgba(148,163,184,.18);
  --good:#9fe29f;
  --warn:#ffd27d;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
}

/* Layout */
.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:18px 16px;
}

.top{
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.05), transparent);
}

h1{
  margin:0 0 6px 0;
  font-size:22px;
  letter-spacing:.2px;
}

.sub{
  color:var(--muted);
  font-size:14px;
}

.muted{
  color:var(--muted);
}

/* Metadata line */
#meta{
  margin-top:8px;
  font-size:13px;
}

/* Card / table container */
.card{
  position:relative; /* required for hover panel positioning */
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(16,24,38,.35);
  overflow:auto;
}

/* Table */
table{
  width:100%;
  border-collapse:collapse;
  min-width:980px;
}

thead th{
  position:sticky;
  top:0;
  z-index:5;
  background:rgba(16,24,38,.95);
  border-bottom:1px solid var(--line);
  padding:12px 10px;
  text-align:left;
  font-size:12px;
  letter-spacing:.3px;
  text-transform:uppercase;
  color:var(--muted);
}

tbody td{
  border-bottom:1px solid var(--line);
  padding:12px 10px;
  vertical-align:top;
  font-size:14px;
}

tbody tr:hover{
  background:rgba(255,255,255,.03);
}

/* Links: keep them looking like text */
a{
  color:inherit;
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

/* Pills / badges */
.badge{
  display:inline-block;
  padding:2px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
}

/* Redemption cell hover target */
td.redemptionCell{
  cursor:help;
}

/* Cursor-anchored hover note panel */
.hoverNote{
  position:absolute;
  left:0;
  top:0;
  z-index:50;
  margin:0;
  padding:10px 12px;
  background:#fff;
  color:#000;
  border:1px solid rgba(0,0,0,.12);
  border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  font-size:13px;
  line-height:1.35;

  /* Allow full text, no scrolling */
  height:auto;
  max-height:none;
  overflow:visible;
  white-space:normal;

  /* Critical so hover logic doesn’t break */
  pointer-events:none;
}

/* Error output */
.hidden{
  display:none;
}

pre#error{
  margin:0;
  padding:12px;
  border-top:1px solid var(--line);
  color:var(--warn);
  white-space:pre-wrap;
  font-size:13px;
}

/* Fine-print footer */
.footer{
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid var(--line);
  font-size:11px;
  line-height:1.45;
  opacity:0.75;
}

.footer a{
  text-decoration:underline;
}
