*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #0f0f0f;
  color: #e8e8e8;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

main {
  text-align: center;
}

h1 {
  font-size: 3rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

#api-status {
  font-size: 0.9rem;
  color: #888;
}

#api-status.ok    { color: #4caf82; }
#api-status.error { color: #e05555; }

/* ── Profile page ───────────────────────────────────────────────────── */

body.profile-body { align-items: flex-start; padding: 2rem 1rem; }

.profile-main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.profile-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.profile-back:hover { color: #e8e8e8; }

.profile-id {
  font-size: 1.1rem;
  font-weight: 600;
  color: #aaa;
  margin: 0 0 1.5rem;
  letter-spacing: 0.05em;
  word-break: break-all;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.profile-table th,
.profile-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #222;
  text-align: left;
  vertical-align: top;
}

.profile-table th {
  color: #888;
  font-weight: 500;
  width: 180px;
  white-space: nowrap;
}

.profile-table td pre {
  margin: 0;
  font-family: monospace;
  font-size: 0.85rem;
  color: #c8c8c8;
  white-space: pre-wrap;
  word-break: break-all;
}

.profile-missing,
.profile-error {
  color: #888;
  font-size: 0.95rem;
}

.profile-error { color: #e05555; }
