:root {
  --bg: #1a1d21;
  --surface: #252930;
  --border: #3a4049;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --accent: #5c9ead;
  --error: #e57373;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  width: 100%;
  max-width: 360px;
}

.login-card h1 {
  margin-top: 0;
  font-size: 1.5rem;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-card label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.login-card input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
}

.login-card button,
.link-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  cursor: pointer;
}

.error {
  color: var(--error);
  margin: 0 0 1rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.top-bar h1 {
  margin: 0;
  font-size: 1.25rem;
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-bar form {
  margin: 0;
}

.link-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.metrics,
.apps {
  padding: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.metric {
  margin-bottom: 1rem;
}

.metric label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.bar {
  height: 8px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bar .fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}

.app-card:hover {
  border-color: var(--accent);
}

.app-card span {
  font-size: 0.85rem;
  color: var(--muted);
}
