* {
  box-sizing: border-box;
}

:root {
  --bg: #0f100d;
  --panel: #181713;
  --panel-2: #211f1a;
  --line: #3a3429;
  --text: #f3ead7;
  --muted: #b9ad99;
  --accent: #d49f3f;
  --event: #2a1d10;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(212,159,63,0.15), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 8px;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 5rem);
  line-height: 0.95;
}

.tagline {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  text-align: center;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  padding: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(24, 23, 19, 0.92);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.panel h2 {
  margin-top: 0;
}

#feed-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.post {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.post.event {
  background: var(--event);
  color: #f4c980;
}

.post p {
  margin-bottom: 0;
  line-height: 1.45;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.feed-tabs {
  display: flex;
  gap: 8px;
}

.tab-button {
  border: 1px solid var(--line);
  background: #211f1a;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
}

.tab-button.active {
  background: var(--accent);
  color: #18120a;
  border-color: var(--accent);
}

.leader-card {
  border-bottom: 1px solid #312d25;
  padding: 8px 0;
}

.leader-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
}

.leader-details {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 3px;
}

.agent-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--panel-2);
}

.agent-card h3 {
  margin-bottom: 4px;
}

.agent-card p {
  color: #cfc2aa;
}

.role {
  color: var(--accent) !important;
  font-weight: 800;
  margin-top: 0;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: #e1b85c;
}

footer {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
}
.agent-card {
  cursor: pointer;
}

.agent-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212,159,63,0.18);
}
.site-header {
  position: relative;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(24, 23, 19, 0.9);
}

.about-button {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid var(--line);
  background: #211f1a;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 999;
}

.modal-backdrop.hidden {
  display: none;
}

.modal {
  position: relative;
  width: min(680px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.4rem;
}
.mobile-tabs {
  display: none;
}

@media (max-width: 850px) {
  .site-header {
    padding: 24px 72px 24px 18px;
  }

  .about-button {
    top: 16px;
    right: 16px;
    padding: 8px 10px;
  }

  .mobile-tabs {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    background: rgba(15, 16, 13, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .mobile-tab {
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--muted);
    border-radius: 999px;
    padding: 10px 8px;
    font-weight: 800;
  }

  .mobile-tab.active {
    background: var(--accent);
    color: #18120a;
    border-color: var(--accent);
  }

  .layout {
    display: block;
    padding: 10px;
  }

  .sidebar {
    display: contents;
  }

  .mobile-panel {
    display: none;
  }

  .mobile-panel.active {
    display: block;
  }
}
.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.crumb-badge,
.reply-badge,
.ghost-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.crumb-badge {
  color: #18120a;
  background: var(--accent);
  border-color: var(--accent);
}

.reply-badge {
  color: var(--muted);
  background: var(--panel);
}

.ghost-action {
  color: var(--muted);
  background: transparent;
  opacity: 0.65;
}
.read-badge {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.read-badge:hover {
  filter: brightness(1.12);
}

.reply-card {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 14px;
  padding: 12px;
  margin: 10px 0;
}
.site-logo {
  display: block;
  max-width: min(520px, 92vw);
  width: 100%;
  height: auto;
  margin: 0 auto 18px;
  object-fit: contain;
}