/* Applications-only enhancements (kept additive) */

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  white-space:nowrap;
}
.muted{opacity:.85;}

/* Timeline */
.timeline{
  position:relative;
  margin-top:14px;
  padding-left:18px;
}
.timeline:before{
  content:"";
  position:absolute;
  left:6px;
  top:4px;
  bottom:4px;
  width:2px;
  background: rgba(255,255,255,0.14);
}
.t-item{
  position:relative;
  display:flex;
  gap:14px;
  padding:12px 0 12px 0;
}
.t-dot{
  position:relative;
  width:14px;
  flex:0 0 14px;
}
.t-dot:before{
  content:"";
  position:absolute;
  left:0px;
  top:6px;
  width:14px;
  height:14px;
  border-radius:50%;
  background: rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.25);
}
.t-item.latest .t-dot:before{
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}
.t-body{flex:1;}
.t-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.t-date{
  font-size:12px;
  opacity:.85;
  white-space:nowrap;
}
.t-tags{
  list-style:none;
  padding:0;
  margin:10px 0 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.t-tags li{
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

/* Parallel tree */
.branch-tree{
  display:grid;
  grid-template-columns: 1.2fr 120px 0.9fr;
  gap:18px;
  align-items:stretch;
  margin-top:14px;
}
.bt-col{display:flex; flex-direction:column; gap:12px;}
.bt-node{
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius:14px;
  padding:12px 12px;
}
.bt-node.root{
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.06);
}
.bt-node.merge{
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.06);
}
.bt-node.next{
  opacity:.92;
}
.bt-title{font-weight:700; margin-bottom:4px;}
.bt-sub{font-size:13px; opacity:.9; line-height:1.35;}

.bt-line{
  height:18px;
  border-left:2px solid rgba(255,255,255,0.14);
  margin-left:14px;
}

.bt-mid{align-items:center; justify-content:center;}
.bt-merge{
  height:100%;
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.bt-merge-line{
  width:2px;
  height:90px;
  background: rgba(255,255,255,0.14);
}
.bt-merge-dot{
  width:14px;
  height:14px;
  border-radius:50%;
  background: rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.30);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
}

@media (max-width: 860px){
  .branch-tree{
    grid-template-columns: 1fr;
  }
  .bt-mid{display:none;}
}
