:root {
  --bg: #0f1115;
  --surface: #181b22;
  --surface-hover: #1f232d;
  --border: #2a2f3a;
  --text: #e6e8ec;
  --text-dim: #9aa1ad;
  --accent: #5eead4;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 720px;
  padding: 1.5rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

header h1 { margin: 0; font-size: 1.4rem; }
header h1 a { color: var(--text); text-decoration: none; }
.accent { color: var(--accent); }

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
}
nav a:hover { color: var(--text); }

h2 {
  margin: 2.5rem 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

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

.card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.icon { font-size: 1.5rem; }
.card-body { display: flex; flex-direction: column; min-width: 0; }
.name { font-weight: 600; }
.desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flash {
  padding: 0.6rem 1rem;
  background: #3a1f24;
  border: 1px solid #6e3038;
  border-radius: 8px;
  color: #f4b8c0;
}

.login {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
  margin: 4rem auto 0;
}

.login label { color: var(--text-dim); font-size: 0.9rem; }

.login input {
  padding: 0.6rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}
.login input:focus { outline: none; border-color: var(--accent); }

.login button {
  padding: 0.6rem;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #0f1115;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.login button:hover { filter: brightness(1.1); }
