* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0b0c0f;
  color: #e8e9ec;
}
a { color: #6ea8ff; }

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: #16181d;
  border: 1px solid #24262d;
  border-radius: 12px;
  padding: 32px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-card h1 { margin: 0; font-size: 20px; }
.login-card .subtitle { margin: -8px 0 8px; color: #9a9da6; font-size: 13px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #b7bac2; }
.login-card input {
  background: #0e0f13;
  border: 1px solid #2a2d35;
  border-radius: 8px;
  padding: 10px 12px;
  color: #e8e9ec;
  font-size: 14px;
}
.login-card button {
  margin-top: 6px;
  background: #3d7eff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}
.login-card .error { color: #ff6b6b; font-size: 13px; margin: 0; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid #1c1e24;
}
.topbar h1 { font-size: 16px; margin: 0; font-weight: 600; }
.topbar a.back { color: #e8e9ec; text-decoration: none; }
.topbar a.logout { color: #9a9da6; font-size: 13px; text-decoration: none; }

main { padding: 24px 28px 60px; max-width: 1100px; margin: 0 auto; }

.tiles { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.tile {
  background: #16181d;
  border: 1px solid #24262d;
  border-radius: 12px;
  padding: 18px 22px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tile-value { font-size: 26px; font-weight: 700; }
.tile-label { font-size: 12px; color: #9a9da6; }

.panel {
  background: #16181d;
  border: 1px solid #24262d;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.panel h2 { font-size: 14px; margin: 0 0 14px; color: #cfd1d6; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #1f2127; }
th { color: #9a9da6; font-weight: 500; }
td.truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge {
  background: #1f4d2e;
  color: #7ee0a0;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
}
.empty { color: #9a9da6; font-size: 13px; }
