* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, sans-serif;
  color: #000;
  background: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
main { max-width: 320px; width: 100%; padding: 1rem; }
h1 { font-weight: normal; text-align: center; font-size: 1.25rem; }
form { display: flex; flex-direction: column; gap: 0.5rem; }
input, button {
  font: inherit; padding: 0.5rem;
  border: 1px solid #000; background: #fff; color: #000;
}
button { cursor: pointer; }
button:hover { background: #000; color: #fff; }
.err { color: #c00; font-size: 0.875rem; }

/* Dashboard (logged-in landing) */
body:has(.dash) main { max-width: 420px; }
.dash-head { text-align: center; }
.who { font-size: 0.875rem; color: #555; margin-top: -0.4rem; }
ul.services {
  list-style: none; padding: 0; margin: 1rem 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
a.service {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.75rem; border: 1px solid #000;
  text-decoration: none; color: #000;
}
a.service:hover { background: #000; color: #fff; }
a.service .name { font-weight: 600; }
a.service .desc { font-size: 0.8rem; }
a.service .host { font-size: 0.75rem; color: #555; }
a.service:hover .host, a.service:hover .desc { color: #ddd; }
.empty { font-size: 0.875rem; color: #555; text-align: center; }
.dash-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.btn {
  display: block; text-align: center; padding: 0.5rem;
  border: 1px solid #000; text-decoration: none; color: #000;
}
.btn:hover { background: #000; color: #fff; }
