#rmx-root {
  --lane-model: #818cf8;
  --lane-reports: #3fb950;
  --lane-data: #58a6ff;
  --lane-reliability: #d4a017;
  --lane-growth: #f85149;
  --lane-design: #8b949e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #0d1117;
  border: 1px solid #1f2630;
  border-radius: 16px;
  color: #e6edf3;
  margin: 0 auto;
  max-width: 920px;
  padding: 18px 16px 16px;
}

.roadmap-shell {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 20px;
}

.roadmap-title {
  color: var(--text, #e6edf3);
  font-size: 28px;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.roadmap-sub {
  color: var(--muted, #8b949e);
  font-size: 14px;
  margin: 0 0 24px;
}

.rmx-top {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.rmx-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.rmx-kicker {
  color: #8a94a6;
  font-size: 12px;
  line-height: 1.45;
  margin: 3px 0 0;
}

.rmx-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.rmx-build {
  background: #1a1407;
  border: 1px solid #e0b15a;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(224, 177, 90, 0.32);
  color: #f0c674;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  white-space: nowrap;
}

.rmx-jump {
  background: #161f2b;
  border: 1px solid #2c3746;
  border-radius: 999px;
  color: #c8d0db;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  white-space: nowrap;
}

.rmx-jump:hover,
.rmx-jump:focus-visible {
  background: #1c2735;
  border-color: #3a485b;
  outline: none;
}

.rmx-legend {
  color: #aeb6c2;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 12px;
  margin: 14px 2px 2px;
}

.rmx-legend-item {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.rmx-legend-dot {
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.rmx-track-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 40px 4px 6px;
}

.rmx-track {
  align-items: flex-end;
  display: flex;
  gap: 6px;
  height: 58px;
  min-width: max-content;
  padding: 0 4px;
}

.rmx-cell {
  --rmx-lane-color: var(--lane-design);
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  height: 58px;
  justify-content: flex-end;
  min-width: 30px;
  padding: 0;
  position: relative;
  text-decoration: none;
}

.rmx-cell[data-lane="model"] { --rmx-lane-color: var(--lane-model); }
.rmx-cell[data-lane="reports"] { --rmx-lane-color: var(--lane-reports); }
.rmx-cell[data-lane="data"] { --rmx-lane-color: var(--lane-data); }
.rmx-cell[data-lane="reliability"] { --rmx-lane-color: var(--lane-reliability); }
.rmx-cell[data-lane="growth"] { --rmx-lane-color: var(--lane-growth); }
.rmx-cell[data-lane="design"] { --rmx-lane-color: var(--lane-design); }

.rmx-pill {
  border-radius: 9px;
  box-sizing: border-box;
  height: 42px;
  transform-origin: bottom center;
  transition: transform 120ms ease-out;
  width: 18px;
}

.rmx-cell.is-shipped .rmx-pill {
  background: linear-gradient(180deg, var(--rmx-lane-color), var(--rmx-lane-color));
  box-shadow: 0 0 7px var(--rmx-lane-color);
}

.rmx-cell.is-planned .rmx-pill {
  background: transparent;
  border: 1.5px dashed var(--rmx-lane-color);
  opacity: 0.6;
}

.rmx-cell.is-current .rmx-pill {
  animation: rmxpulse 1.9s ease-in-out infinite;
  border: 2px solid #f0c674;
}

.rmx-lab {
  color: #cfd6e0;
  font-size: 8px;
  height: 10px;
  line-height: 10px;
  margin-top: 5px;
  opacity: 0;
  overflow: visible;
  transition: opacity 120ms ease-out;
  white-space: nowrap;
}

.rmx-cell.is-active .rmx-lab,
.rmx-cell:focus-visible .rmx-lab {
  opacity: 1;
}

.rmx-cell:focus-visible {
  outline: none;
}

.rmx-cell:focus-visible .rmx-pill {
  box-shadow: 0 0 0 2px #0d1117, 0 0 0 4px #58a6ff;
}

.rmx-now,
.rmx-month {
  align-items: center;
  color: #8a94a6;
  display: flex;
  flex-direction: column;
  font-size: 8px;
  height: 58px;
  justify-content: flex-end;
  letter-spacing: 0.08em;
  padding: 0 4px;
  text-transform: uppercase;
}

.rmx-now-bar,
.rmx-month-bar {
  border-left: 1px dashed #3a4453;
  height: 48px;
  width: 0;
}

.rmx-month-bar {
  border-left-style: solid;
  border-left-color: #27313f;
  height: 34px;
}

.rmx-now-label,
.rmx-month-label {
  height: 10px;
  line-height: 10px;
  margin-top: 5px;
  white-space: nowrap;
}

.rmx-detail {
  background: #121922;
  border: 1px solid #222c38;
  border-radius: 12px;
  margin-top: 12px;
  min-height: 120px;
  padding: 13px 15px;
}

.rmx-detail-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.rmx-detail-dot {
  border-radius: 50%;
  display: inline-block;
  height: 11px;
  width: 11px;
}

.rmx-detail-lane {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rmx-detail-date {
  color: #6b7482;
  font-size: 11px;
}

.rmx-detail-title {
  color: #e6edf3;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

.rmx-detail-summary {
  color: #8a94a6;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 6px;
}

.rmx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.rmx-chip {
  background: #1b2330;
  border: 1px solid #2a3543;
  border-radius: 6px;
  color: #c8d0db;
  font-size: 11px;
  line-height: 1.3;
  padding: 3px 8px;
}

.rmx-entry-link {
  color: #58a6ff;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 11px;
  text-decoration: none;
}

.rmx-entry-link:hover,
.rmx-entry-link:focus-visible {
  outline: none;
  text-decoration: underline;
}

.rmx-empty {
  color: #8a94a6;
  font-size: 13px;
  line-height: 1.5;
}

.rmx-noscript {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.rmx-noscript-col {
  background: #0d1117;
  border: 1px solid #1f2630;
  border-radius: 8px;
  padding: 16px;
}

.rmx-noscript-col h2 {
  color: #58a6ff;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.rmx-noscript-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rmx-noscript-col li {
  border-bottom: 1px solid #222c38;
  padding: 10px 0;
}

.rmx-noscript-col li:last-child {
  border-bottom: 0;
}

.rmx-noscript-col strong,
.rmx-noscript-col span,
.rmx-noscript-col em {
  display: block;
}

.rmx-noscript-col strong {
  color: #e6edf3;
  font-size: 13px;
  line-height: 1.35;
}

.rmx-noscript-col span {
  color: #8a94a6;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}

.rmx-noscript-col em,
.rmx-noscript-empty {
  color: #6b7482;
  font-size: 11px;
  font-style: normal;
  margin-top: 4px;
}

@keyframes rmxpulse {
  0%, 100% { box-shadow: 0 0 6px 0 rgba(240, 198, 116, 0.45); }
  50% { box-shadow: 0 0 13px 2px rgba(240, 198, 116, 0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .rmx-pill {
    transition: none;
  }

  .rmx-cell.is-current .rmx-pill {
    animation: none;
  }
}

@media (max-width: 900px) {
  .rmx-noscript {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .roadmap-shell {
    margin: 24px auto;
    padding: 0 14px;
  }

  #rmx-root {
    border-radius: 14px;
    padding: 16px 12px 14px;
  }

  .rmx-actions {
    justify-content: flex-start;
  }
}
