body {
  font-family: Arial, sans-serif;
  margin: 20px;
  line-height: 1.4;
  background-image: url("/storage/profile.webp");
  background-repeat: repeat;
}

.hidden {
  display: none;
}

#loading,
#error {
  text-align: center;
  padding: 50px 0;
}

#error {
  color: red;
}

#profile {
  max-width: 800px;
  margin: 0 auto;
}

img {
  max-width: 100px;
  height: auto;
  border-radius: 50%;
}

h1,
h3 {
  margin: 20px 0 10px 0;
}

p {
  margin: 10px 0;
}

hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #ccc;
}

.post {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.post:last-child {
  border-bottom: none;
}

.post-meta {
  color: #666;
  font-size: 0.9em;
  margin-top: 10px;
}

.field {
  margin: 10px 0;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.field:last-child {
  border-bottom: none;
}

.field-name {
  font-weight: bold;
  display: inline-block;
  margin-right: 10px;
}

.field-value {
  color: #666;
}

.no-data {
  text-align: center;
  color: #666;
  font-style: italic;
  margin: 20px 0;
}

.app-window {
  max-width: 900px;
  margin: 0 auto;
}

.centered {
  text-align: center;
  padding: 32px 0;
}

.status.error {
  color: #b00020;
}

.avatar-tile {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: linear-gradient(#e8f1fb, #cfe6ff);
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 2px rgba(0, 0, 0, 0.25);
  padding: 6px;
  display: grid;
  place-items: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

h1 {
  margin: 8px 0 4px 0;
}

.muted {
  color: #666;
}

.profile-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-identity {
  flex: 1;
}

.stats {
  margin-top: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
}

.listbox {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow: auto;
}

.listbox li {
  padding: 10px 12px;
}

.listbox li + li {
  border-top: 1px solid #eee;
}

.post-content {
  margin-bottom: 6px;
}

.post-meta {
  color: #666;
  font-size: 0.9em;
}
