.timeline-panel {
  --timeline-panel-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  --timeline-panel-border: rgba(148, 163, 184, 0.18);
  --timeline-panel-text: #0f172a;
  --timeline-panel-muted: #64748b;
  --timeline-panel-rail: rgba(148, 163, 184, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--timeline-panel-border);
  border-radius: 20px;
  background: var(--timeline-panel-surface);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  color: var(--timeline-panel-text);
}

.timeline-panel--compact {
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
}

.timeline-panel__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-panel__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.timeline-panel__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--timeline-panel-text);
}

.timeline-panel__description {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--timeline-panel-muted);
}

.timeline-panel__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-panel__item {
  position: relative;
  display: grid;
  grid-template-columns: 108px 40px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
}

.timeline-panel--compact .timeline-panel__item {
  grid-template-columns: 88px 34px minmax(0, 1fr);
  gap: 12px;
}

.timeline-panel__time {
  padding-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--timeline-panel-muted);
}

.timeline-panel__track {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 100%;
}

.timeline-panel__track::after {
  content: '';
  position: absolute;
  top: 18px;
  bottom: -26px;
  left: calc(50% - 1px);
  width: 2px;
  border-radius: 999px;
  background: var(--timeline-panel-rail);
}

.timeline-panel__item:last-child .timeline-panel__track::after {
  display: none;
}

.timeline-panel__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--timeline-panel-accent-border);
  border-radius: 14px;
  background: var(--timeline-panel-accent-soft);
  color: var(--timeline-panel-accent);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.timeline-panel--compact .timeline-panel__icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.timeline-panel__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--timeline-panel-accent-border);
  border-radius: 16px;
  background: var(--timeline-panel-card-background);
}

.timeline-panel--compact .timeline-panel__card {
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
}

.timeline-panel__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.timeline-panel__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.timeline-panel__item-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--timeline-panel-text);
}

.timeline-panel__item-meta {
  font-size: 12px;
  line-height: 1.5;
  color: var(--timeline-panel-muted);
}

.timeline-panel__badge {
  display: inline-flex;
  flex-shrink: 0;
  gap: 6px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--timeline-panel-accent-border);
  border-radius: 999px;
  background: var(--timeline-panel-accent-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--timeline-panel-accent);
}

.timeline-panel__description-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #334155;
}

.timeline-panel__empty {
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

@media (max-width: 640px) {
  .timeline-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .timeline-panel__item,
  .timeline-panel--compact .timeline-panel__item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-panel__time {
    padding-top: 0;
    padding-left: 46px;
  }

  .timeline-panel__track {
    position: absolute;
    top: 26px;
    left: 0;
    bottom: 0;
    width: 36px;
    justify-content: flex-start;
  }

  .timeline-panel__track::after {
    top: 28px;
    bottom: -20px;
  }

  .timeline-panel__card {
    margin-left: 46px;
  }

  .timeline-panel__row {
    flex-direction: column;
    align-items: flex-start;
  }
}
