:root {
  --bg: #07100f;
  --bg-soft: #10201d;
  --panel: rgba(17, 31, 28, 0.88);
  --panel-strong: rgba(19, 34, 31, 0.95);
  --border: rgba(231, 217, 182, 0.18);
  --text: #f3ead2;
  --muted: #bcae8a;
  --gold: #b68a49;
  --gold-soft: #d7bc84;
  --green: #5cb67b;
  --red: #b95544;
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(182, 138, 73, 0.18), transparent 32%),
    linear-gradient(180deg, #091413 0%, #050a09 100%);
  font-family: "Noto Sans SC", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding-bottom: 56px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0 28px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 16, 15, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(231, 217, 182, 0.25);
  border-radius: 50%;
  color: var(--gold-soft);
  font-family: "Noto Serif SC", serif;
  font-size: 1.25rem;
  font-weight: 900;
  background:
    radial-gradient(circle at 30% 30%, rgba(231, 217, 182, 0.16), transparent 60%),
    rgba(182, 138, 73, 0.08);
}

.brand-logo {
  object-fit: cover;
  padding: 0;
  border-width: 2px;
  background: #080808;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small,
.topnav a,
.section-tag,
.stat-label,
.mini-title,
.archive-label,
.agenda-status {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

.topnav {
  display: flex;
  gap: 20px;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topnav a {
  position: relative;
  font-size: 0.84rem;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 180ms ease;
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #0d120f;
  background:
    linear-gradient(135deg, #e9d5a7 0%, #c28c41 100%);
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  box-shadow: 0 12px 28px rgba(182, 138, 73, 0.24);
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(182, 138, 73, 0.3);
}

.button-secondary,
.button-outline {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(231, 217, 182, 0.18);
  box-shadow: none;
}

.button-small {
  padding: 11px 16px;
  font-size: 0.88rem;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 16%),
    var(--panel);
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(231, 217, 182, 0.06), transparent 30%);
  pointer-events: none;
}

.panel-glow {
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(182, 138, 73, 0.08),
    0 0 32px rgba(182, 138, 73, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 48px;
}

.eyebrow,
.section-tag {
  color: var(--gold-soft);
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-lead {
  margin: 16px 0 10px;
  color: var(--gold-soft);
  font-size: 1.28rem;
  font-weight: 700;
}

.hero-text,
.dossier p,
.agenda-main p,
.join p {
  color: rgba(243, 234, 210, 0.88);
  line-height: 1.8;
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.wallet-panel {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
}

.contract-panel {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
}

.contract-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.contract-address {
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid rgba(231, 217, 182, 0.12);
  border-radius: var(--radius-md);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.7;
  word-break: break-all;
}

.wallet-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.wallet-network {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 8px 12px;
  border: 1px solid rgba(231, 217, 182, 0.14);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
}

.wallet-network.is-ok {
  color: #dfffe7;
  border-color: rgba(92, 182, 123, 0.35);
  background: rgba(92, 182, 123, 0.12);
}

.wallet-network.is-warn {
  color: #ffe8c5;
  border-color: rgba(185, 85, 68, 0.35);
  background: rgba(185, 85, 68, 0.12);
}

.wallet-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.wallet-data {
  padding: 14px;
  border: 1px solid rgba(231, 217, 182, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.wallet-data span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.wallet-data strong {
  display: block;
  color: var(--text);
  line-height: 1.6;
  word-break: break-all;
}

.wallet-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.wallet-helper {
  margin: 14px 0 0;
  color: rgba(243, 234, 210, 0.72);
  line-height: 1.65;
}

.hero-cta-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(231, 217, 182, 0.12);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top left, rgba(182, 138, 73, 0.12), transparent 35%),
    rgba(255, 255, 255, 0.03);
}

.cta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(231, 217, 182, 0.1);
}

.cta-line:first-child {
  padding-top: 0;
  border-top: 0;
}

.cta-line span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-line strong {
  color: var(--text);
  font-size: 0.96rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li,
.agenda-meta > div {
  padding: 16px;
  border: 1px solid rgba(231, 217, 182, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.stat-label,
.agenda-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.hero-stage {
  display: grid;
  gap: 18px;
}

.chamber {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at center, rgba(182, 138, 73, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel-strong);
  border: 1px solid var(--border);
}

.hero-emblem {
  position: absolute;
  width: min(100%, 360px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.18;
  filter: saturate(1.08) drop-shadow(0 0 28px rgba(182, 138, 73, 0.24));
  mix-blend-mode: screen;
}

.chamber::before,
.chamber::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(231, 217, 182, 0.18);
}

.chamber::before {
  width: min(100%, 420px);
  aspect-ratio: 1;
}

.chamber::after {
  width: min(100%, 280px);
  aspect-ratio: 1;
}

.chamber-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  border: 1px solid rgba(231, 217, 182, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(182, 138, 73, 0.3), rgba(182, 138, 73, 0.08) 60%, transparent 80%),
    rgba(14, 24, 22, 0.92);
}

.core-seal {
  text-align: center;
  color: var(--gold-soft);
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  line-height: 1.6;
}

.seat-ring {
  position: absolute;
  inset: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.seat-ring span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 100px;
  padding: 10px 8px;
  border: 1px solid rgba(231, 217, 182, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(13, 22, 20, 0.88);
  font-size: 0.78rem;
  transform-origin: center center;
}

.seat-ring-outer span:nth-child(1) { transform: translate(-50%, -50%) translate(0, -190px); }
.seat-ring-outer span:nth-child(2) { transform: translate(-50%, -50%) translate(164px, -94px); }
.seat-ring-outer span:nth-child(3) { transform: translate(-50%, -50%) translate(164px, 94px); }
.seat-ring-outer span:nth-child(4) { transform: translate(-50%, -50%) translate(0, 190px); }
.seat-ring-outer span:nth-child(5) { transform: translate(-50%, -50%) translate(-164px, 94px); }
.seat-ring-outer span:nth-child(6) { transform: translate(-50%, -50%) translate(-164px, -94px); }

.seat-ring-inner span:nth-child(1) { transform: translate(-50%, -50%) translate(0, -116px); }
.seat-ring-inner span:nth-child(2) { transform: translate(-50%, -50%) translate(108px, 0); }
.seat-ring-inner span:nth-child(3) { transform: translate(-50%, -50%) translate(0, 116px); }
.seat-ring-inner span:nth-child(4) { transform: translate(-50%, -50%) translate(-108px, 0); }

.ticker {
  padding: 18px 20px;
}

.ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticker-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(92, 182, 123, 0.8);
}

.ticker-body {
  display: grid;
  gap: 10px;
  color: var(--gold-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
}

.section-grid,
.section-stack,
.section-agenda {
  margin-top: 28px;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.dossier,
.panel-list,
.charter-card,
.rule-card,
.member-card,
.seat-card,
.agenda-main,
.mini-panel,
.mini-brief,
.archive-card,
.join {
  padding: 28px;
}

.panel-list ul,
.mini-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.panel-list li,
.mini-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(231, 217, 182, 0.12);
  color: rgba(243, 234, 210, 0.92);
  line-height: 1.6;
}

.panel-list li:first-child,
.mini-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-heading {
  margin-bottom: 18px;
}

.section-note {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(243, 234, 210, 0.74);
  line-height: 1.75;
}

.charter-grid,
.rules-grid,
.member-grid,
.seats-grid,
.archive-grid,
.phase-grid,
.paper-grid,
.governance-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.paper-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
}

.paper-nav {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 24px;
}

.paper-index {
  margin: 16px 0 0;
  padding-left: 20px;
  color: rgba(243, 234, 210, 0.88);
}

.paper-index li {
  margin: 10px 0;
  line-height: 1.6;
}

.paper-stack {
  display: grid;
  gap: 20px;
}

.paper-feature,
.paper-section {
  padding: 28px;
}

.paper-feature-head {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.paper-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.paper-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.paper-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.charter-index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.charter-card p,
.rule-card p,
.member-card p,
.seat-card p,
.archive-card p,
.phase-card p,
.paper-card p {
  color: rgba(243, 234, 210, 0.82);
  line-height: 1.8;
}

.governance-grid {
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-brief {
  padding: 24px;
}

.terminal-shell {
  padding: 24px;
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.terminal-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 16px;
}

.terminal-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(231, 217, 182, 0.12);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.terminal-primary {
  background:
    radial-gradient(circle at top left, rgba(182, 138, 73, 0.14), transparent 40%),
    rgba(255, 255, 255, 0.03);
}

.terminal-card p {
  color: rgba(243, 234, 210, 0.84);
  line-height: 1.75;
}

.terminal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(231, 217, 182, 0.14);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.03);
}

.faq-card {
  padding: 24px;
}

.faq-card p {
  color: rgba(243, 234, 210, 0.84);
  line-height: 1.75;
}

.action-modal {
  width: min(560px, calc(100% - 24px));
  padding: 0;
  border: 1px solid rgba(231, 217, 182, 0.16);
  border-radius: 24px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    #0d1715;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.action-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.action-modal-head,
.action-modal-body,
.action-modal-actions {
  padding-inline: 24px;
}

.action-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

.action-modal-body {
  margin: 0;
  padding-top: 8px;
  color: rgba(243, 234, 210, 0.84);
  line-height: 1.75;
}

.action-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 24px;
}

.modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(231, 217, 182, 0.14);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.4rem;
  cursor: pointer;
}

.admin-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 24px;
  margin-top: 16px;
}

.admin-config-grid {
  padding: 16px 24px 0;
}

.admin-field {
  display: grid;
  gap: 10px;
}

.admin-field span {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(231, 217, 182, 0.14);
  border-radius: var(--radius-md);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.admin-field input:focus {
  outline: 1px solid rgba(231, 217, 182, 0.26);
}

.admin-note {
  padding: 0 24px 24px;
  margin: 0;
}

.feature-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 12px 0;
  border-top: 1px solid rgba(231, 217, 182, 0.12);
  color: rgba(243, 234, 210, 0.86);
  line-height: 1.65;
}

.feature-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.phase-card,
.paper-card {
  padding: 28px;
}

.loop {
  margin-top: 20px;
  padding: 28px;
}

.loop-head {
  margin-bottom: 18px;
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.loop-step {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(231, 217, 182, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.loop-step strong,
.paper-no {
  color: var(--gold-soft);
  font-family: "IBM Plex Mono", monospace;
}

.loop-step span {
  color: rgba(243, 234, 210, 0.9);
}

.paper-card-wide {
  grid-column: span 2;
}

.paper-card-inline {
  padding: 22px;
  border: 1px solid rgba(231, 217, 182, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.paper-card-inline h4 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 1.1rem;
}

.paper-card-inline p {
  margin: 12px 0 0;
}

.token-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.token-flow-wide {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.token-node {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 18px;
  border: 1px solid rgba(231, 217, 182, 0.14);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top, rgba(182, 138, 73, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.03);
  color: rgba(243, 234, 210, 0.92);
  text-align: center;
  line-height: 1.6;
}

.seat-card span {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.meme-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.coin-card {
  position: relative;
  min-height: 250px;
  padding: 20px;
  border: 1px solid rgba(231, 217, 182, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 50%),
    rgba(255, 255, 255, 0.02);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.coin-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 217, 182, 0.28);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.coin-card strong,
.coin-card span {
  display: block;
}

.coin-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 1px solid rgba(231, 217, 182, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.coin-image-logo {
  object-fit: contain;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 40%, rgba(231, 217, 182, 0.08), transparent 50%),
    rgba(255, 255, 255, 0.02);
}

.coin-card strong {
  margin-top: 18px;
  font-family: "Noto Serif SC", serif;
  font-size: 1.18rem;
}

.coin-card span {
  margin-top: 10px;
  color: rgba(243, 234, 210, 0.76);
  line-height: 1.6;
}

.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
}

.agenda-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.agenda-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.75rem;
}

.agenda-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px rgba(92, 182, 123, 0.6);
}

.agenda-vote {
  color: var(--gold-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 2rem;
}

.vote-meter {
  height: 16px;
  margin: 24px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.vote-fill {
  display: block;
  width: 76%;
  height: 100%;
  background:
    linear-gradient(90deg, #6bd78d 0%, #d2a65d 100%);
  border-radius: inherit;
  transition: width 220ms ease;
}

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

.agenda-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.proposal-panel {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
}

.proposal-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.proposal-panel-head h4 {
  margin: 6px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: 1.15rem;
}

.proposal-threshold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(231, 217, 182, 0.14);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
}

.proposal-threshold.is-pass {
  color: #dfffe7;
  border-color: rgba(92, 182, 123, 0.35);
  background: rgba(92, 182, 123, 0.12);
}

.proposal-copy {
  margin: 14px 0 0;
  color: rgba(243, 234, 210, 0.8);
  line-height: 1.7;
}

.proposal-meter {
  margin-top: 16px;
}

.proposal-vote-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.proposal-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.proposal-status-card {
  padding: 14px;
  border: 1px solid rgba(231, 217, 182, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.proposal-status-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.proposal-status-card strong {
  color: var(--text);
}

.mini-title {
  color: var(--gold-soft);
  font-size: 0.78rem;
}

.agenda-side {
  display: grid;
  gap: 20px;
}

.archive-label {
  color: var(--gold-soft);
  font-size: 0.72rem;
}

.join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

@media (max-width: 1080px) {
  .hero,
  .section-grid,
  .charter-grid,
  .rules-grid,
  .member-grid,
  .seats-grid,
  .meme-wall,
  .archive-grid,
  .phase-grid,
  .paper-grid,
  .governance-grid,
  .faq-grid,
  .paper-layout,
  .paper-grid-compact,
  .paper-grid-three,
  .paper-grid-two,
  .terminal-grid,
  .agenda-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .wallet-panel-grid,
  .agenda-meta,
  .proposal-status-grid,
  .admin-panel-grid,
  .loop-steps,
  .token-flow,
  .token-flow-wide {
    grid-template-columns: 1fr;
  }

  .paper-card-wide {
    grid-column: span 1;
  }

  .paper-nav {
    position: static;
  }

  .topbar {
    border-radius: 28px;
    padding: 16px;
  }

  .topnav {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--content-width));
  }

  .topbar,
  .hero,
  .dossier,
  .panel-list,
  .charter-card,
  .rule-card,
  .member-card,
  .seat-card,
  .agenda-main,
  .mini-panel,
  .mini-brief,
  .archive-card,
  .join {
    padding: 22px;
  }

  .meme-wall {
    padding: 20px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  h1 {
    font-size: clamp(2.6rem, 18vw, 4rem);
  }

  .chamber {
    min-height: 360px;
  }

  .seat-ring span {
    width: 86px;
    font-size: 0.68rem;
  }

  .seat-ring-outer span:nth-child(1) { transform: translate(-50%, -50%) translate(0, -144px); }
  .seat-ring-outer span:nth-child(2) { transform: translate(-50%, -50%) translate(124px, -72px); }
  .seat-ring-outer span:nth-child(3) { transform: translate(-50%, -50%) translate(124px, 72px); }
  .seat-ring-outer span:nth-child(4) { transform: translate(-50%, -50%) translate(0, 144px); }
  .seat-ring-outer span:nth-child(5) { transform: translate(-50%, -50%) translate(-124px, 72px); }
  .seat-ring-outer span:nth-child(6) { transform: translate(-50%, -50%) translate(-124px, -72px); }

  .seat-ring-inner span:nth-child(1) { transform: translate(-50%, -50%) translate(0, -92px); }
  .seat-ring-inner span:nth-child(2) { transform: translate(-50%, -50%) translate(86px, 0); }
  .seat-ring-inner span:nth-child(3) { transform: translate(-50%, -50%) translate(0, 92px); }
  .seat-ring-inner span:nth-child(4) { transform: translate(-50%, -50%) translate(-86px, 0); }

  .join {
    flex-direction: column;
    align-items: start;
  }
}

/* Site Footer */
.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.twitter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.twitter-link:hover {
  color: var(--gold);
}

.twitter-link svg {
  width: 20px;
  height: 20px;
}
