:root {
  --bg: #07101d;
  --panel: #0f1c2f;
  --panel-soft: rgba(15, 28, 47, 0.7);
  --line: rgba(136, 169, 214, 0.22);
  --text: #eaf2ff;
  --muted: #adc1df;
  --implemented-bg: rgba(53, 199, 141, 0.18);
  --implemented-fg: #86f5c5;
  --partial-bg: rgba(220, 180, 50, 0.2);
  --partial-fg: #ffd966;
  --stubbed-bg: rgba(196, 125, 11, 0.445);
  --stubbed-fg: #ffa81b;
  --unimplemented-bg: rgba(231, 103, 103, 0.2);
  --unimplemented-fg: #ffb0b0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(52, 198, 140, 0.13), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(55, 131, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #07101d 0%, #091425 45%, #0a1422 100%);
  color: var(--text);
}

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

code,
th,
td {
  font-family: "IBM Plex Mono", monospace;
}

.page-shell {
  width: min(96vw, 1400px);
  margin: 0 auto;
  padding-bottom: 2rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 14, 27, 0.72);
  backdrop-filter: blur(18px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.75rem;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #83ffd3 0%, #57b7ff 100%);
  color: #06101d;
}

.brand-name {
  font-size: 1.05rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  padding: 3.5rem 0 1.3rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: #83ffd3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 65ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.4rem;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel-soft);
  padding: 1rem;
}

.summary-label {
  color: var(--muted);
  display: block;
  margin-bottom: 0.45rem;
}

.summary-card strong {
  font-size: 1.4rem;
}

.summary-card-status {
  grid-column: span 2;
}

.status-totals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.status-totals li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.status-totals .status-pill {
  cursor: default;
}

.status-totals .status-pill:hover::after {
  display: none;
}

.controls {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.controls label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.controls input,
.controls select {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.table-shell {
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: auto;
  max-height: 72vh;
  background: rgba(8, 18, 34, 0.72);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1160px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  text-align: left;
  background: #111f36;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding: 0.8rem;
}

tbody td {
  border-bottom: 1px solid var(--line);
  padding: 0.72rem 0.8rem;
  vertical-align: top;
}

.dll-divider-row th {
  position: sticky;
  top: 2.65rem;
  z-index: 4;
  padding: 0.55rem 0.8rem;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(24, 59, 100, 0.93) 0%, rgba(35, 94, 141, 0.93) 52%, rgba(20, 58, 102, 0.93) 100%);
  color: #dcf1ff;
  border-top: 1px solid rgba(157, 214, 255, 0.52);
  border-bottom: 1px solid rgba(157, 214, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(212, 237, 255, 0.22), inset 0 -1px 0 rgba(212, 237, 255, 0.12);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.dll-divider-row + tr td {
  border-top: none;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.dll-name {
  font-weight: 700;
  color: #9dd6ff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: lowercase;
  cursor: help;
  position: relative;
}

.status-pill:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  background: rgba(20, 30, 50, 0.95);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.implemented {
  background: var(--implemented-bg);
  color: var(--implemented-fg);
}

.partial {
  background: var(--partial-bg);
  color: var(--partial-fg);
}

.stubbed {
  background: var(--stubbed-bg);
  color: var(--stubbed-fg);
}

.unimplemented {
  background: var(--unimplemented-bg);
  color: var(--unimplemented-fg);
}

.source-path {
  color: var(--muted);
  font-size: 0.82rem;
  word-break: break-word;
}

.source-link {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.source-link:hover {
  color: #9dd6ff;
}

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

.footnote {
  color: var(--muted);
  margin-top: 0.8rem;
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card-status {
    grid-column: span 2;
  }

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

@media (max-width: 680px) {
  .summary-grid,
  .controls {
    grid-template-columns: 1fr;
  }

  .summary-card-status {
    grid-column: span 1;
  }

  .site-header {
    border-radius: 1rem;
  }
}