.projects-v2 {
  --p2-border: #dde3ed;
  --p2-text: #111827;
  --p2-muted: #64748b;
  --p2-range: #b8c4d8;
  --p2-range-hover: #95a6c1;
  --p2-range-active: #2563eb;
  --p2-row-alt: #f8fafd;
  --p2-row-selected: rgba(37, 99, 235, 0.08);
  --p2-marker-global: #f59e0b;
  --p2-marker-repo: #0ea5a3;
  --p2-marker-range: rgba(245, 158, 11, 0.1);
  --p2-bg: #ffffff;
  --p2-label-width: 220px;
  --p2-group-range: #8b7bbd;
  --p2-group-range-hover: #7560af;
  color: var(--p2-text);
}

.projects-v2__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 0.55rem 0;
}

.projects-v2__controls button {
  border: 1px solid var(--p2-border);
  background: #f7f9fc;
  color: var(--p2-text);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.84rem;
  line-height: 1.2;
  cursor: pointer;
}

.projects-v2__controls button:hover {
  background: #eef3fb;
}

.projects-v2__controls button.is-active {
  background: #e8efff;
  border-color: #9ab5f1;
  color: #1e40af;
}

.projects-v2__controls-group {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding-right: 0.35rem;
}

.projects-v2__controls-sep {
  width: 1px;
  height: 22px;
  background: var(--p2-border);
  margin-right: 0.1rem;
}

.projects-v2__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  margin: 0 0 0.75rem;
  color: var(--p2-muted);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.projects-v2__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.projects-v2__legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.projects-v2__legend-swatch.range {
  background: var(--p2-range);
}

.projects-v2__legend-swatch.active {
  background: var(--p2-range-active);
}

.projects-v2__legend-swatch.career {
  background: #ea580c;
}

.projects-v2__legend-swatch.tech-shift {
  background: #2563eb;
}

.projects-v2__legend-swatch.launch {
  background: #0ea5a3;
}

.projects-v2__legend-swatch.release {
  background: #a21caf;
}

.projects-v2__meta {
  color: var(--p2-muted);
  font-size: 0.76rem;
  line-height: 1.35;
  letter-spacing: 0.005em;
  margin: 0;
  text-align: left;
}

.projects-v2__meta-generated[title] {
  cursor: help;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.projects-v2__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0.45rem 0 0.9rem;
  font-size: 0.76rem;
}

.projects-v2__legacy-link {
  margin-left: auto;
  white-space: nowrap;
  font-size: inherit;
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 1.5px;
}

.projects-v2__footer .projects-v2__meta {
  font-size: inherit;
}

.projects-v2__legacy-link:hover,
.projects-v2__legacy-link:focus-visible {
  color: #334155;
}

.projects-v2__frame {
  display: grid;
  grid-template-columns: var(--p2-label-width) minmax(0, 1fr);
  border: 1px solid var(--p2-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--p2-bg);
}

.projects-v2__labels {
  position: relative;
  border-right: 1px solid var(--p2-border);
  background: #fbfcff;
  z-index: 1;
}

.projects-v2__labels-header {
  position: sticky;
  top: 0;
  background: #f5f8fc;
  border-bottom: 1px solid var(--p2-border);
  z-index: 2;
}

.projects-v2__labels-layer {
  position: absolute;
  inset: 0;
}

.projects-v2__label-row {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projects-v2__label-row.is-alt {
  background: var(--p2-row-alt);
}

.projects-v2__label-row.is-group {
  font-weight: 700;
  color: #31215f;
}

.projects-v2__label-row.is-selected {
  background: var(--p2-row-selected);
}

.projects-v2__label-row.is-dimmed {
  opacity: 0.52;
}

.projects-v2__label-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projects-v2__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.projects-v2__status-dot.status-active {
  background: #16a34a;
}

.projects-v2__status-dot.status-archived {
  background: #94a3b8;
}

.projects-v2__status-dot.status-legacy {
  background: #a855f7;
}

.projects-v2__label-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.projects-v2__label-link:hover,
.projects-v2__label-link:focus-visible {
  text-decoration: underline;
}

.projects-v2__timeline {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.projects-v2__timeline.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.projects-v2__svg {
  display: block;
}

.projects-v2__row-alt {
  fill: var(--p2-row-alt);
}

.projects-v2__row-hover {
  fill: transparent;
  pointer-events: none;
}

.projects-v2__row-hover.is-selected {
  fill: var(--p2-row-selected);
}

.projects-v2__axis text {
  fill: #7a8496;
  font-size: 11px;
}

.projects-v2__axis path,
.projects-v2__axis line {
  stroke: #d3dbea;
}

.projects-v2__quarter-band.is-even {
  fill: rgba(56, 89, 154, 0.025);
}

.projects-v2__quarter-band.is-odd {
  fill: rgba(148, 163, 184, 0.045);
}

.projects-v2__half-year-lines line {
  stroke: rgba(71, 85, 105, 0.24);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.projects-v2__idle-gap-band {
  opacity: 0.9;
  cursor: help;
}

.projects-v2__idle-gap-edge {
  stroke: rgba(51, 65, 85, 0.55);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.projects-v2__idle-gap-label {
  fill: #334155;
  font-size: 9px;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2px;
  pointer-events: none;
}

.projects-v2__range {
  fill: var(--p2-range);
  rx: 4px;
  ry: 4px;
  cursor: pointer;
}

.projects-v2__range:hover {
  fill: var(--p2-range-hover);
}

.projects-v2__range.is-grouped {
  fill: var(--p2-group-range);
  stroke: rgba(40, 28, 96, 0.28);
  stroke-width: 0.8;
}

.projects-v2__range.is-grouped:hover {
  fill: var(--p2-group-range-hover);
}

.projects-v2__range.is-active-now {
  fill: var(--p2-range-active);
  stroke: rgba(30, 64, 175, 0.9);
  stroke-width: 0.9;
}

.projects-v2__range.is-dimmed,
.projects-v2__repo-range.is-dimmed,
.projects-v2__repo-point-line.is-dimmed,
.projects-v2__repo-point-dot.is-dimmed {
  opacity: 0.22;
}

.projects-v2__range.is-selected,
.projects-v2__repo-range.is-selected,
.projects-v2__repo-point-line.is-selected,
.projects-v2__repo-point-dot.is-selected {
  opacity: 1;
}

.projects-v2__repo-point-line {
  stroke: var(--p2-marker-repo);
  stroke-width: 1.7;
  stroke-dasharray: 2 2;
}

.projects-v2__repo-point-dot {
  fill: var(--p2-marker-repo);
}

.projects-v2__repo-range {
  fill: rgba(14, 165, 163, 0.16);
  stroke: rgba(12, 132, 131, 0.52);
  stroke-width: 1;
  rx: 3px;
  ry: 3px;
  cursor: pointer;
}

.projects-v2__global-point-line {
  stroke: var(--p2-marker-global);
  stroke-width: 1.2;
  stroke-dasharray: 2 2;
}

.projects-v2__global-point-label {
  fill: #475569;
  font-size: 10px;
  font-weight: 700;
}

.projects-v2__global-point-pill-bg {
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(148, 163, 184, 0.75);
}

.projects-v2__global-point-pill-stem {
  stroke: rgba(100, 116, 139, 0.52);
  stroke-width: 1;
}

.projects-v2__global-range {
  fill: var(--p2-marker-range);
  cursor: pointer;
}

.projects-v2__today-line {
  stroke: #1d4ed8;
  stroke-width: 1.4;
  stroke-dasharray: 3 3;
}

.projects-v2__today-label {
  fill: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
}

.marker-cat-career {
  --marker-accent: #ea580c;
}

.marker-cat-tech-shift {
  --marker-accent: #2563eb;
}

.marker-cat-launch {
  --marker-accent: #0ea5a3;
}

.marker-cat-release {
  --marker-accent: #a21caf;
}

.marker-cat-milestone {
  --marker-accent: #7c3aed;
}

.projects-v2__repo-point-line[class*="marker-cat-"],
.projects-v2__global-point-line[class*="marker-cat-"] {
  stroke: var(--marker-accent, currentColor);
}

.projects-v2__repo-point-dot[class*="marker-cat-"] {
  fill: var(--marker-accent, currentColor);
}

.projects-v2__repo-range[class*="marker-cat-"] {
  fill: color-mix(in srgb, var(--marker-accent, #64748b) 18%, transparent);
  stroke: color-mix(in srgb, var(--marker-accent, #64748b) 55%, #334155);
}

.projects-v2__repo-span-point {
  cursor: pointer;
}

.projects-v2__repo-span-hit {
  fill: rgba(162, 28, 175, 0.001);
}

.projects-v2__repo-span-line {
  stroke: color-mix(in srgb, var(--marker-accent, #a21caf) 85%, #1f2937);
  stroke-width: 2.2;
  stroke-dasharray: 4 2;
}

.projects-v2__repo-span-dot {
  fill: color-mix(in srgb, var(--marker-accent, #a21caf) 90%, #ffffff);
  stroke: #ffffff;
  stroke-width: 1.1;
}

.projects-v2__global-point-pill[class*="marker-cat-"] .projects-v2__global-point-pill-bg {
  stroke: color-mix(in srgb, var(--marker-accent, #64748b) 45%, #94a3b8);
  fill: color-mix(in srgb, var(--marker-accent, #64748b) 8%, #ffffff);
}

.projects-v2__global-point-pill[class*="marker-cat-"] .projects-v2__global-point-label {
  fill: color-mix(in srgb, var(--marker-accent, #64748b) 80%, #334155);
}

.projects-v2__tooltip {
  position: absolute;
  z-index: 1100;
  pointer-events: none;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;
  border: 1px solid #d7e0ee;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.13);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.projects-v2__tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.projects-v2__tooltip a {
  color: #1d4ed8;
  text-decoration: underline;
}

.projects-v2__tooltip-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.projects-v2__tooltip-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.projects-v2__tooltip-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d6deed;
  background: #f8fbff;
  color: #1f2937;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
}

.projects-v2__tooltip-chip.is-muted {
  color: #556274;
  background: #f8fafc;
}

.projects-v2__tooltip-chip.is-category {
  color: #1e3a8a;
  background: #eff6ff;
}

.projects-v2__tooltip-chip.is-status.status-active {
  color: #166534;
  background: #ecfdf5;
}

.projects-v2__tooltip-chip.is-status.status-legacy {
  color: #6b21a8;
  background: #f5f3ff;
}

.projects-v2__tooltip-chip.is-status.status-archived {
  color: #475569;
  background: #f8fafc;
}

.projects-v2__tooltip-more {
  margin: 7px 0 0;
  color: #475569;
}

.projects-v2__tooltip-video {
  display: block;
  width: 100%;
  max-width: 300px;
  margin-top: 8px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .projects-v2 {
    --p2-label-width: 160px;
  }

  .projects-v2__footer {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .projects-v2__legacy-link {
    margin-left: 0;
  }
}
