:root {
  --ink: #2B1B4D;
  --night: #1A1030;
  --gold: #F5C518;
  --mint: #2DD4A8;
  --paper: #F7F4FB;
  --t1: #7C5CFF;
  --t2: #6B7280;
  --t3: #F5C518;
  --t4: #2DD4A8;
  --t5: #E8B923;
  --red: #E4573D;
  --grey: #9AA0AC;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", "IBM Plex Sans Thai", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

nav {
  background: var(--night);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  flex-wrap: wrap;
}
nav .brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
}
nav .brand span { color: var(--gold); }
nav a.page {
  color: #C9C2DE;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
nav a.page:hover { color: var(--paper); }
nav a.page.active { background: rgba(245,197,24,0.15); color: var(--gold); }
nav .updated { margin-left: auto; color: #8B82A8; font-size: 12px; }

main { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }

h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; }
h2 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.sub { color: #5C5378; margin-top: 8px; max-width: 720px; }

.facts-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}
.chip {
  background: #fff;
  border: 1px solid #E4DEF2;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chip.warn { border-color: var(--red); color: var(--red); }
.chip b { font-weight: 800; }

.grid { display: grid; gap: 16px; }
.grid.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid #E9E3F5;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(43,27,77,0.05);
  min-width: 0;
}
.card h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card ul { margin: 10px 0 0 18px; font-size: 13.5px; color: #443B63; }
.card li + li { margin-top: 5px; }

.status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: auto; white-space: nowrap; }
.s-green { background: rgba(45,212,168,0.15); color: #14876B; }
.s-yellow { background: rgba(245,197,24,0.18); color: #8A6D00; }
.s-red { background: rgba(228,87,61,0.13); color: var(--red); }
.s-grey { background: rgba(154,160,172,0.18); color: #565D69; }

.owner { font-size: 12px; color: #7A7099; margin-top: 8px; }
.next {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 8px 12px;
}
.next::before { content: "NEXT → "; color: #8A6D00; font-size: 11px; font-weight: 800; }

.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #E9E3F5;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
}
.task-row + .task-row { margin-top: 8px; }
.task-row .who {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(124,92,255,0.12);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.size {
  font-size: 11px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #E9E3F5;
  border-radius: 12px;
  padding: 11px 14px;
}
.person + .person { margin-top: 8px; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.person.tbd { opacity: 0.75; border-style: dashed; }
.person .p-name { font-weight: 700; font-size: 14px; }
.person .p-role { font-size: 12.5px; color: #6B6288; }
.pill { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.st-confirmed { background: rgba(45,212,168,0.15); color: #14876B; }
.st-proposed { background: rgba(124,92,255,0.13); color: #5A3FD1; }
.st-tbd { background: rgba(154,160,172,0.18); color: #565D69; }

.vip-list { columns: 2; column-gap: 24px; font-size: 13.5px; margin-left: 18px; }
@media (max-width: 700px) { .vip-list { columns: 1; } }

.digest-block { margin-top: 18px; }
.digest-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.digest-col h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.dc-decided h4 { color: #14876B; }
.dc-progress h4 { color: #8A6D00; }
.dc-asks h4 { color: var(--red); }
.digest-col ul { margin-left: 17px; font-size: 13.5px; color: #443B63; }
.digest-col li + li { margin-top: 6px; }

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 48px;
  color: #857BA6;
  font-size: 12.5px;
}
footer code { background: #fff; border: 1px solid #E9E3F5; border-radius: 6px; padding: 2px 7px; }

.orbit {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}
.hub-dot {
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  background: var(--t3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--night);
}
.node {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.n1 { top: -4px; left: 52px; background: var(--t1); }
.n2 { top: 30px; right: -2px; background: var(--t2); }
.n3 { bottom: 6px; right: 14px; background: var(--t3); }
.n4 { bottom: 6px; left: 14px; background: var(--t4); }
.n5 { top: 30px; left: -2px; background: var(--t5); }

.intro { display: flex; gap: 28px; align-items: center; margin: 10px 0 30px; }
.intro p { max-width: 640px; font-size: 14.5px; color: #4A4169; }
@media (max-width: 640px) { .intro { flex-direction: column; } }
