:root {
  --bg: #0d0f12;
  --surface: #161a20;
  --border: #2a3038;
  --text: #e8eaed;
  --muted: #8b939e;
  --accent: #5b9fd4;
  --accent-hover: #7ab5e0;
  --danger: #e06c75;
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.site-header a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.site-header a:hover {
  color: var(--accent);
}

main {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

input[type="text"],
input[type="url"],
textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font: inherit;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--text);
}

.error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.jid-display {
  font-family: var(--mono);
  font-size: 0.875rem;
  word-break: break-all;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.jid-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin-bottom: 1rem;
  background: var(--bg);
}

.profile-public {
  text-align: center;
}

.profile-public .avatar-preview {
  width: 128px;
  height: 128px;
  margin: 0 auto 1rem;
}

.profile-alias {
  font-size: 1.25rem;
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board-list li {
  border-bottom: 1px solid var(--border);
}

.board-list li:last-child {
  border-bottom: none;
}

.board-list a {
  display: block;
  padding: 0.875rem 0;
  color: var(--text);
  text-decoration: none;
}

.board-list a:hover {
  color: var(--accent);
}

.board-list .board-label {
  font-weight: 600;
  display: block;
}

.board-list .board-desc {
  font-size: 0.875rem;
  color: var(--muted);
}

.listing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.listing-item {
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}

.listing-item:last-child {
  border-bottom: none;
}

.listing-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.listing-item a:hover {
  color: var(--accent);
}

.listing-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.listing-body {
  white-space: pre-wrap;
  margin: 1rem 0 0;
}

.listing-detail-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.empty-state {
  color: var(--muted);
  font-size: 0.9375rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}
