:root {
  color-scheme: dark;
  --bg: #070809;
  --bg-deep: #0c0d10;
  --ink: #f2efe8;
  --muted: #9d968b;
  --accent: #f5b000;
  --accent-dark: #cf8a00;
  --panel: #121318;
  --panel-soft: #171a22;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 20px;
  font-family: "Space Grotesk", "IBM Plex Mono", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #1b1d24 0%, var(--bg) 40%, var(--bg-deep) 100%);
  color: var(--ink);
  min-height: 100vh;
}

.bg-glow {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 45vh;
  background: radial-gradient(circle, rgba(245, 176, 0, 0.22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  padding: 10px clamp(10px, 4vw, 20px) 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.title {
  font-size: clamp(18px, 2.2vw, 26px);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.status-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.button {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #120c00;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(245, 176, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(197, 126, 0, 0.35);
}

.status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-family: "IBM Plex Mono", monospace;
}

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}

.tab {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab.is-active {
  background: linear-gradient(135deg, rgba(245, 176, 0, 0.18), rgba(207, 138, 0, 0.28));
  color: var(--ink);
}

.tab:not(.is-active):hover {
  color: var(--ink);
}

.search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.search input {
  min-width: min(280px, 70vw);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel-soft);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 70vh;
  background: var(--panel-soft);
}

#roadmap-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

#roadmap-table thead {
  position: sticky;
  top: 0;
  background: rgba(24, 26, 32, 0.95);
  z-index: 1;
}

#roadmap-table th,
#roadmap-table td {
  text-align: left;
  padding: 4px 4px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.branch-input {
  width: 100%;
  min-width: 240px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.branch-input:focus {
  outline: none;
  border-color: rgba(245, 176, 0, 0.6);
  box-shadow: 0 0 0 2px rgba(245, 176, 0, 0.15);
}

#roadmap-table th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--muted);
}

#roadmap-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

#roadmap-table tbody tr:hover {
  background: rgba(245, 176, 0, 0.12);
}

.eta-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.yes-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
}

#roadmap-table .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

#roadmap-table .dot-green {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
}

#roadmap-table .dot-yellow {
  background: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.18);
}

#roadmap-table .cell-center {
  text-align: center;
}

.eta-date {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.status-release {
  background: rgba(34, 197, 94, 0.25);
  color: #baf7d0;
}

.status-ready-release {
  background: rgba(20, 184, 166, 0.25);
  color: #bdf7ef;
}

.status-qa {
  background: rgba(59, 130, 246, 0.25);
  color: #cfe4ff;
}

.status-ready-qa {
  background: rgba(56, 189, 248, 0.25);
  color: #d1f2ff;
}

.status-prep-qa {
  background: rgba(14, 116, 144, 0.35);
  color: #c9f1fb;
}

.status-art-fix {
  background: rgba(248, 113, 113, 0.3);
  color: #ffe1e1;
}

.status-art-check {
  background: rgba(250, 204, 21, 0.25);
  color: #fff4bf;
}

.status-gd-fix {
  background: rgba(251, 146, 60, 0.25);
  color: #ffe0c2;
}

.status-gd-check {
  background: rgba(163, 230, 53, 0.25);
  color: #e8fbd0;
}

.status-development {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.status-asset-ready {
  background: rgba(34, 211, 238, 0.25);
  color: #d6fcff;
}

.status-asset-prep {
  background: rgba(56, 189, 248, 0.2);
  color: #dff5ff;
}

.status-pending {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.status-hold {
  background: rgba(124, 45, 18, 0.45);
  color: #ffd7c7;
}

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

.link:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .panel {
    padding: 20px;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  #roadmap-table {
    min-width: 100%;
  }
}
