:root {
  --bg: #0b0c0e;
  --panel: #14161a;
  --panel-2: #1a1d22;
  --line: #24282f;
  --text: #e9edf3;
  --muted: #8b94a3;
  --accent: #ff5a1f;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.right { text-align: right; }

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100dvh; }
.sidebar {
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100dvh;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; }

nav { display: flex; flex-direction: column; gap: 2px; }
.nav {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  transition: background 120ms ease, color 120ms ease;
}
.nav:hover { background: var(--panel-2); color: var(--text); }
.nav.active { background: var(--panel-2); color: var(--text); }

.signout { margin-top: auto; }
.signout button {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
}
.signout button:hover { color: var(--text); border-color: #343a44; }

.main { padding: 28px 32px 48px; max-width: 1180px; }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
h1 { font-size: 22px; margin: 0; letter-spacing: -0.02em; font-weight: 620; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-size: 26px; letter-spacing: -0.02em; font-weight: 620; }
.label { color: var(--muted); font-size: 13px; }

.grid { width: 100%; border-collapse: collapse; }
.grid th {
  text-align: left;
  font-size: 12px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--line);
}
.grid td { padding: 12px; border-bottom: 1px solid var(--line); }
.grid tr:last-child td { border-bottom: none; }
.grid tbody tr:hover td { background: var(--panel-2); }

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.empty { color: var(--muted); text-align: center; padding: 28px 0; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: none; }

button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
}
button.ghost:hover { border-color: #343a44; }

.centered { display: grid; place-items: center; min-height: 100dvh; }
.signin { width: min(380px, calc(100vw - 40px)); display: flex; flex-direction: column; gap: 14px; }
.signin label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.signin input {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 9px;
  font: inherit;
}
.signin input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.signin button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 11px;
  border-radius: 9px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.error { color: #ff7b72; margin: 0; font-size: 13px; }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .main { padding: 20px; }
}
