.auth-shell {
  max-width: 480px;
  margin: 40px auto;
  padding: 24px;
}
.auth-logo {
  height: 84px;
  width: 84px;
  border-radius: 22px;
}
.auth-shell h1 {
  font-size: 36px;
  letter-spacing: -1.4px;
  line-height: 1.15;
}
.auth-tabs {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}
.secondary {
  background: #332b49;
  color: #e2d5fc;
}
.muted {
  color: #b7aacb;
  line-height: 1.65;
}
.fine {
  font-size: 12px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.check {
  font-size: 13px;
  line-height: 1.7;
}
.check input {
  width: auto;
  min-height: 0;
  margin-right: 10px;
}
nav {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 12px 0;
  position: sticky;
  top: 0;
  background: #141329;
  z-index: 5;
}
nav button {
  white-space: nowrap;
  background: transparent;
  color: #b7aacb;
  font-weight: 500;
}
nav button.active {
  background: #33284e;
  color: #e9dfff;
}
#social-panel {
  min-height: 50vh;
}
.social-card {
  padding: 20px;
  border: 1px solid #40344f;
  border-radius: 18px;
  background: #211d36;
  margin: 16px 0;
}
.person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.person h3,
.person p {
  margin: 2px 0;
}
.avatar {
  height: 54px;
  width: 54px;
  object-fit: cover;
  border-radius: 18px;
  flex-shrink: 0;
}
.fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5d4488, #275b68);
  font-size: 24px;
  font-weight: 700;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags span {
  background: #39304c;
  color: #d9c7f6;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
}
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.card-actions button {
  padding: 10px 14px;
  font-size: 12px;
}
.post-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
textarea {
  width: 100%;
  min-height: 110px;
  border-radius: 12px;
  background: #18152a;
  border: 1px solid #514264;
  color: #f5efff;
  padding: 14px;
  font: inherit;
  margin: 8px 0 16px;
  resize: vertical;
}
select {
  background: #211d36;
  border: 1px solid #514264;
  color: #e1d2f6;
  padding: 12px;
  border-radius: 10px;
  margin: 0 10px 16px 0;
  max-width: 100%;
}
.dm-log {
  height: 45vh;
  overflow: auto;
  padding: 12px;
  background: #1c182e;
  border-radius: 16px;
  margin: 16px 0;
}
.bubble {
  max-width: 85%;
  background: #342c49;
  padding: 12px 16px;
  border-radius: 16px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.bubble.mine {
  margin-left: auto;
  background: #4e3871;
}
.bubble p {
  white-space: pre-wrap;
  margin: 0 0 6px;
}
.bubble small {
  color: #c9b6dc;
  font-size: 10px;
}
.bubble button {
  display: block;
  font-size: 10px;
  padding: 6px;
  margin-top: 8px;
}
.dm-compose {
  display: flex;
  gap: 8px;
}
.dm-compose input {
  margin: 0;
}
label:has(input[type="checkbox"]) {
  display: flex;
  gap: 12px;
  align-items: center;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
}
input[type="file"] {
  font-size: 13px;
  margin-top: 16px;
}
#auth-status {
  color: #ffb4bf;
  line-height: 1.6;
}
#auth-submit {
  width: 100%;
  margin-top: 12px;
  min-height: 48px;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.people-grid .social-card {
  margin-bottom: 0;
}
header #logout {
  font-size: 12px;
  padding: 8px 12px;
}
@media (max-width: 480px) {
  .auth-shell {
    margin: 12px auto;
  }
  main {
    padding: 16px;
  }
  nav {
    margin: 0 -4px;
  }
  nav button {
    padding: 12px;
    font-size: 12px;
  }
  h1 {
    font-size: 23px;
  }
  header small {
    display: none;
  }
}

.live-only #app > header,
.live-only nav,
.live-only footer {
  display: none;
}
