* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #0f1115;
  color: #e6e8ee;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid #222630;
  background: #141823;
}

.header h1 {
  margin: 0 0 4px 0;
  font-size: 20px;
}

.muted {
  margin: 0;
  font-size: 12px;
  color: #9aa3b2;
}

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.controls select,
.controls button {
  background: #1f2430;
  border: 1px solid #2b3240;
  color: #e6e8ee;
  padding: 6px 10px;
  border-radius: 6px;
}

.controls .ghost {
  background: transparent;
}

.auth-container {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-card label {
  font-size: 12px;
  color: #9aa3b2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-card input {
  background: #1f2430;
  border: 1px solid #2b3240;
  color: #e6e8ee;
  padding: 8px 10px;
  border-radius: 6px;
}

.auth-card button {
  background: #3a6df0;
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.hidden {
  display: none;
}

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

.card {
  background: #161a24;
  border: 1px solid #222630;
  border-radius: 10px;
  padding: 16px;
}

.card h2 {
  margin-top: 0;
  font-size: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.stat {
  background: #1b2030;
  border: 1px solid #262d3c;
  border-radius: 8px;
  padding: 10px;
}

.stat .label {
  font-size: 11px;
  color: #9aa3b2;
}

.stat .value {
  font-size: 16px;
  margin-top: 4px;
  font-weight: 600;
}

.table {
  margin-top: 12px;
  border-top: 1px solid #222630;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #222630;
  font-size: 12px;
}

.table-row.header {
  font-weight: 600;
  color: #9aa3b2;
  border-bottom: 1px solid #2d3445;
}

.table-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
