:root {
  --bg: #eef6f3;
  --ink: #132732;
  --muted: #506675;
  --line: #d3e0e8;
  --card: #ffffff;
  --accent: #0f5a44;
  --accent-2: #0b3f6b;
  --highlight: #e9f8ef;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #eaf6f1 0%, #f8fafb 52%);
  color: var(--ink);
}
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 30px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.brand img { width: 30px; height: 30px; }
.nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--accent-2);
  font-weight: 600;
}
.headline {
  background: linear-gradient(130deg, #0f5a44 0%, #0b3f6b 100%);
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(12, 32, 48, 0.16);
}
.headline h1 {
  margin: 0;
  font-size: 1.4rem;
}
.headline p {
  margin: 8px 0 0;
  color: #d7eaf8;
}
.status {
  margin: 14px 0;
  color: var(--muted);
}
.my-models {
  margin-bottom: 14px;
}
.my-models h2 {
  margin: 6px 0;
  font-size: 1.05rem;
}
.tabs {
  margin: 14px 0 10px;
  display: inline-flex;
  gap: 8px;
  background: #e7f0f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.tab {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: #27495f;
  font-weight: 700;
  cursor: pointer;
}
.tab.active {
  background: #0f5a44;
  color: #fff;
}
.table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
thead th {
  background: #f3f8fb;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
tr.current-user {
  background: var(--highlight);
}
.rank {
  font-weight: 800;
}
.model {
  font-weight: 700;
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.cta {
  display: inline-block;
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.inline-btn {
  width: auto;
  min-width: 96px;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.inline-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.note {
  margin-top: 12px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .headline h1 { font-size: 1.2rem; }
}
