/* ===== Timeline ===== */
.timeline-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.timeline-group {
  position: relative;
  margin-bottom: 8px;
}

/* Round header */
.tl-round-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  cursor: pointer;
  transition: box-shadow .2s;
  position: relative;
  z-index: 2;
}
.tl-round-header:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.tl-round-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #C0C4CC;
  background: #fff;
  flex-shrink: 0;
  transition: all .3s;
}
.tl-round-header.active .tl-round-dot {
  border-color: #409EFF;
  background: #409EFF;
  box-shadow: 0 0 0 4px rgba(64,158,255,.2);
  animation: tl-pulse 2s ease-in-out infinite;
}
.tl-round-header.upcoming .tl-round-dot {
  border-color: #E6A23C;
  background: #E6A23C;
}
.tl-round-header.past .tl-round-dot {
  border-color: #C0C4CC;
  background: #C0C4CC;
}

@keyframes tl-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(64,158,255,.2); }
  50%      { box-shadow: 0 0 0 8px rgba(64,158,255,.1); }
}

.tl-round-info {
  flex: 1;
  min-width: 0;
}
.tl-round-name {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.tl-round-header.past .tl-round-name {
  color: #909399;
  text-decoration: line-through;
}
.tl-round-meta {
  font-size: 12px;
  color: #909399;
  margin-top: 2px;
}

.tl-round-badge {
  flex-shrink: 0;
}

.tl-round-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tl-expand-icon {
  color: #909399;
  transition: transform .3s;
  flex-shrink: 0;
}
.tl-expand-icon.expanded {
  transform: rotate(90deg);
}

/* Node list inside a round */
.tl-nodes {
  padding-left: 27px;
  border-left: 2px solid #E4E7ED;
  margin-left: 26px;
  overflow: hidden;
  transition: max-height .35s ease, opacity .3s;
}
.tl-nodes.collapsed {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.tl-nodes.expanded {
  opacity: 1;
}

.tl-node {
  position: relative;
  padding: 12px 16px 12px 24px;
  margin: 4px 0;
}
.tl-node::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #C0C4CC;
  z-index: 1;
}

.tl-node.active::before {
  border-color: #409EFF;
  background: #ECF5FF;
  box-shadow: 0 0 0 3px rgba(64,158,255,.15);
}
.tl-node.upcoming::before {
  border-color: #E6A23C;
  background: #FDF6EC;
}
.tl-node.past::before {
  border-color: #DCDFE6;
  background: #DCDFE6;
}

.tl-node.quota::before {
  border-color: #E6A23C;
  background: #FDF6EC;
}
.tl-node.quota.past::before {
  border-color: #DCDFE6;
  background: #DCDFE6;
}

.tl-node-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tl-node-label {
  font-size: 14px;
  font-weight: 500;
  color: #303133;
}
.tl-node.past .tl-node-label {
  color: #C0C4CC;
  text-decoration: line-through;
}
.tl-node-desc {
  font-size: 12px;
  color: #909399;
}
.tl-node.past .tl-node-desc {
  color: #C0C4CC;
}

.tl-node-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* Quota release special styling */
.tl-node.quota .tl-node-label {
  color: #E6A23C;
  font-weight: 600;
}
.tl-node.quota.past .tl-node-label {
  color: #C0C4CC;
}

/* Reminder bell */
.tl-remind-btn {
  cursor: pointer;
  font-size: 16px;
  color: #C0C4CC;
  transition: color .2s;
  display: flex;
  align-items: center;
}
.tl-remind-btn:hover {
  color: #E6A23C;
}
.tl-remind-btn.active {
  color: #E6A23C;
}

/* Enter button on select nodes */
.tl-enter-btn {
  margin-left: 4px;
}

/* Demo control panel */
.tl-demo-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border: 1px solid #DCDFE6;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  z-index: 9999;
  font-size: 13px;
  min-width: 260px;
}
.tl-demo-panel-title {
  font-weight: 600;
  color: #303133;
  margin-bottom: 8px;
  font-size: 13px;
}
.tl-demo-panel .el-input {
  margin-bottom: 6px;
}
.tl-demo-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
