body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #0e1a24;
  color: #fff;
}

.hidden {
  display: none;
}

/* Gate screen */
.gate {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gate-inner {
  max-width: 400px;
  opacity: 0.8;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  padding: 16px;
}

table {
  border-collapse: collapse;
  min-width: 900px;
  width: max-content;
}

th, td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: right;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  background: #1e2d3a;
  z-index: 2;
}

.row-label {
  text-align: left;
  font-weight: 600;
  position: sticky;
  left: 0;
  background: #16222c;
}

tr:hover {
  background: rgba(255,255,255,0.05);
}

.controls {
  display: flex;
  gap: 8px;
  padding: 12px;
  flex-wrap: wrap;
}

.toggle {
  background: #1e2d3a;
  border: 1px solid #2f4456;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
}

.toggle.active {
  opacity: 1;
  border-color: #d7522f;
}

.group td {
  font-weight: 700;
  background: #101c26;
  text-align: left;
  padding-top: 14px;
}