:root {
  --bg: #071018;
  --paper: #0e1822;
  --ink: #e8f0f4;
  --muted: #8fa3b0;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #1fa97a;
  --on: #04140e;
  --secondary: #0b1220;
  --danger: #f07178;
  --warn: #e6b450;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --ee-scrollbar-size: 8px;
  --ee-scrollbar-track: #0a1218;
  --ee-scrollbar-thumb: #1fa97a;
  --ee-scrollbar-thumb-hover: #27c48d;
}

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

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 169, 122, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(80, 140, 180, 0.12), transparent 50%),
    linear-gradient(180deg, #08121a 0%, var(--bg) 40%, #050b10 100%);
  color: var(--ink);
  font-family: var(--font);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #0a1620;
  border: 1px solid var(--line);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  max-width: min(70vw, 720px);
}

.nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.9rem;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--on);
  background: var(--primary);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
}

.hero .eyebrow {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  max-width: 14ch;
}

.hero .lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--on);
}

a.btn-primary,
button.btn-primary {
  color: var(--on);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

a.btn-ghost { color: var(--ink); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem;
}

.panel {
  background: rgba(14, 24, 34, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  min-width: 0;
}

.panel h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat {
  background: rgba(14, 24, 34, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  min-width: 0;
}

.stat .k {
  color: var(--muted);
  font-size: 0.8rem;
}

.stat .v {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-top: 0.25rem;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { color: var(--muted); font-weight: 500; }

.pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  color: var(--muted);
}

.pill-ok { color: var(--on); background: var(--primary); border-color: transparent; }
.pill-draft { color: var(--warn); }
.pill-danger { color: var(--danger); }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }

.foot {
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 0 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot a { text-decoration: underline; text-underline-offset: 2px; }

.empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top { flex-wrap: wrap; }
  .nav { max-width: 100%; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 2.2rem; }
}
