:root {
  color-scheme: dark;
  --bg: #070806;
  --panel: #11120f;
  --panel-strong: #181a15;
  --line: #2d3327;
  --text: #f4efe0;
  --muted: #a9aa9c;
  --gold: #dca949;
  --red: #c94332;
  --green: #6f9b57;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, rgba(201, 67, 50, .18), transparent 34%),
              radial-gradient(circle at 80% 10%, rgba(220, 169, 73, .14), transparent 30%),
              var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 6, .82);
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img, .login-view img, .avatar {
  object-fit: cover;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand strong {
  display: block;
  font-size: 17px;
}

.brand span, .eyebrow, small {
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button, .ghost {
  border: 1px solid var(--gold);
  color: #160d05;
  background: var(--gold);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 34px auto;
}

.login-view {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
}

.login-view img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

h1, p {
  margin: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 700;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(17, 18, 15, .82);
  border-radius: 8px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stats div, .table-shell {
  background: rgba(17, 18, 15, .88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats div {
  padding: 18px;
}

.stats span {
  display: block;
  font-size: 28px;
  font-weight: 800;
}

.table-shell {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(220, 169, 73, .14);
  color: #f1cc83;
  border: 1px solid rgba(220, 169, 73, .28);
  white-space: nowrap;
}

.made-by {
  position: fixed;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  padding: 7px 9px;
  border: 1px solid rgba(220, 169, 73, .54);
  border-radius: 999px;
  background: rgba(7, 8, 6, .92);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 10px;
  line-height: 12px;
  text-decoration: none;
  text-transform: none;
  z-index: 20;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.made-by:hover {
  border-color: var(--gold);
  color: #fff;
}

.made-by-version {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(201, 67, 50, .72);
  border-radius: 999px;
  background: rgba(89, 23, 25, .78);
  color: #ffd8d1;
  font-weight: 800;
  white-space: nowrap;
}

.made-by-separator {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.credit-label {
  color: var(--muted);
  white-space: nowrap;
}

.made-by-profile {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.made-by-profile strong {
  overflow: hidden;
  max-width: 180px;
  color: #f1cc83;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.made-by-profile:hover strong {
  color: #ffe0a0;
}

.credit-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(220, 169, 73, .35);
}

.hidden { display: none !important; }

@media (max-width: 760px) {
  .topbar, .section-head {
    align-items: stretch;
    flex-direction: column;
    height: auto;
  }

  .topbar {
    padding: 14px;
  }

  nav, .stats {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button, .ghost {
    text-align: center;
  }

  .made-by {
    right: 8px;
    bottom: 8px;
    max-width: calc(100vw - 16px);
    font-size: 11px;
  }
}
