/* milestones: one bot watching a wall of live project sheets */
.milestones { --gap: 12px; --line-c: rgba(255,255,255,.17); width: 100%; padding: 18px 14px 16px; font-family: var(--sans); }
.milestones-top { position: relative; display: flex; align-items: center; justify-content: space-between; height: 50px; margin-bottom: 26px; }
.milestones-bot { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 46px; height: 50px; display: grid; place-items: center; filter: drop-shadow(0 8px 16px rgba(0,0,0,.6)); }
.milestones-chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--mute); font-size: 11.5px; letter-spacing: -.005em; white-space: nowrap; transition: border-color .4s, color .4s, background .4s; }
.milestones-chip b { font-family: var(--mono); font-weight: 500; color: var(--ink); min-width: 8px; text-align: right; }
.milestones-chip.hot { border-color: rgba(61,214,140,.35); background: var(--ok-bg); color: var(--ink); }
.milestones-live { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61,214,140,.6); animation: milestones-live 1.8s ease-out infinite; flex: none; }
@keyframes milestones-live { to { box-shadow: 0 0 0 7px rgba(61,214,140,0); } }

/* wall and watch-lines */
.milestones-wall { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.milestones-trunk { position: absolute; left: calc(50% - .5px); top: -26px; width: 1px; height: 12px; background: var(--line-c); }
.milestones-bus { position: absolute; left: calc((100% - 2 * var(--gap)) / 6); right: calc((100% - 2 * var(--gap)) / 6); top: -14px; height: 1px; background: var(--line-c); }
.milestones-col { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.milestones-col::before { content: ''; position: absolute; left: calc(50% - .5px); top: -14px; bottom: 80px; width: 1px; background: var(--line-c); }
.milestones-pulse { position: absolute; left: calc(50% - 2.5px); top: -14px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 8px 1px rgba(243,241,236,.55); opacity: 0; animation: milestones-pulse 2.6s linear infinite; animation-delay: var(--d, 0s); }
@keyframes milestones-pulse { 0% { top: -16px; opacity: 0; } 12% { opacity: .9; } 85% { opacity: .9; } 100% { top: calc(100% - 84px); opacity: 0; } }

.milestones-card { position: relative; height: 80px; border-radius: 9px; background: #FBFBF9; color: #1d1d1f; box-shadow: 0 10px 24px -14px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); display: flex; flex-direction: column; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.milestones-card::after { content: ''; position: absolute; left: calc(50% - 3px); top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #6a6a70; box-shadow: 0 0 0 2px #100B09; transition: background .4s, box-shadow .4s; }
.milestones-ct { display: flex; align-items: center; gap: 5px; height: 21px; padding: 0 7px; border-bottom: 1px solid #E6E5E0; background: #F1F0EC; border-radius: 9px 9px 0 0; min-width: 0; }
.milestones-ct svg { width: 11px; height: 11px; flex: none; }
.milestones-ct b { font-size: 10.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.milestones-f em { font-family: var(--sans); font-style: normal; font-size: 8.5px; font-weight: 600; letter-spacing: .01em; color: #0B6B3C; background: #CFF3DF; border-radius: 99px; padding: 1.5px 6px; white-space: nowrap; opacity: 0; transform: scale(.8); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.milestones-f em:empty { display: none; }
.milestones-g { flex: 1; display: flex; flex-direction: column; }
.milestones-r { flex: 1; display: grid; grid-template-columns: 1.2fr 1fr 1fr; border-bottom: 1px solid #ECEBE6; }
.milestones-r i { display: flex; align-items: center; padding: 0 5px; border-right: 1px solid #ECEBE6; }
.milestones-r i:last-child { border-right: 0; }
.milestones-r i::before { content: ''; height: 3px; width: var(--w); border-radius: 2px; background: #CFCEC8; }
.milestones-r:last-child { position: relative; }
.milestones-r:last-child::after { content: ''; position: absolute; inset: 0; background: #BFEBD2; opacity: 0; pointer-events: none; }
.milestones-card.tick .milestones-r:last-child::after { animation: milestones-flash .9s ease-out; }
@keyframes milestones-flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.milestones-f { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; font-family: var(--mono); font-size: 9px; color: #6b6a66; white-space: nowrap; }
.milestones-bar { flex: 1; height: 4px; border-radius: 3px; background: #E4E3DD; overflow: hidden; min-width: 20px; }
.milestones-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: #8D8C86; transition: width .7s var(--ease), background .4s; }
.milestones-v u { text-decoration: none; }
.milestones-pc { color: #1d1d1f; font-weight: 500; min-width: 26px; text-align: right; }
.milestones-card.hit { box-shadow: 0 0 0 2px var(--ok), 0 0 34px 2px rgba(61,214,140,.4), 0 10px 24px -14px rgba(0,0,0,.9); transform: scale(1.025); animation: milestones-glow 1.4s ease-in-out 2; z-index: 2; }
@keyframes milestones-glow { 50% { box-shadow: 0 0 0 2px var(--ok), 0 0 52px 8px rgba(61,214,140,.6), 0 10px 24px -14px rgba(0,0,0,.9); } }
.milestones-card.hit::after { background: var(--ok); box-shadow: 0 0 0 2px #100B09, 0 0 8px 2px var(--ok); }
.milestones-card.hit .milestones-f em { opacity: 1; transform: none; }
.milestones-card.hit .milestones-bar i { background: #1FA866; }
.milestones-card.hit .milestones-v, .milestones-card.hit .milestones-pc { display: none; }

/* notification dock */
.milestones-dock { position: relative; height: 70px; margin-top: 16px; }
.milestones-idle { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px dashed var(--line); border-radius: 16px; color: var(--dim); font-size: 12.5px; transition: opacity .4s; }
.milestones-idle.off { opacity: 0; }
.milestones-n { position: absolute; inset: 0; display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 12px; align-items: center; opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.milestones-n.on { opacity: 1; transform: none; }
.milestones-n.gone { opacity: 0; transform: translateY(-14px) scale(.97); }
.milestones-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.milestones-who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.milestones-av { width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ok); }
.milestones-who b { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.milestones-who small { display: block; font-size: 10.5px; color: var(--mute); white-space: nowrap; }
.milestones-toast { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 13px 0 11px; border-radius: 17px; min-width: 0; }
.milestones-push .milestones-toast { background: rgba(58,58,64,.92); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 40px -16px #000; color: #fff; }
.milestones-mail .milestones-toast { background: #FDFDFC; color: #1d1d1f; border-radius: 10px; box-shadow: 0 18px 40px -16px #000; border-left: 3px solid #0F6CBD; }
.milestones-app { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: linear-gradient(160deg, #F0503C, #B62823); }
.milestones-app svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.milestones-mail .milestones-app { background: none; }
.milestones-mail .milestones-app svg { width: 34px; height: 34px; stroke: none; }
.milestones-tx { min-width: 0; flex: 1; line-height: 1.25; }
.milestones-th { display: flex; justify-content: space-between; font-size: 10px; opacity: .62; text-transform: uppercase; letter-spacing: .04em; }
.milestones-th b { font-weight: 500; } .milestones-th small { font-size: 10px; text-transform: none; letter-spacing: 0; }
.milestones-tx strong { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.milestones-tx p { font-size: 11.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.milestones-out { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 16px; font-size: 14.5px; letter-spacing: -.01em; color: var(--ink); opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease), transform .7s var(--ease); text-align: center; }
.milestones-out.on { opacity: 1; transform: none; }
.milestones-out i { width: 20px; height: 20px; border-radius: 50%; background: var(--ok-bg); display: grid; place-items: center; flex: none; }
.milestones-out svg { width: 13px; height: 13px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 600px) {
  .milestones { --gap: 10px; padding: 14px 6px 14px; }
  .milestones-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .milestones-col:nth-child(5) { display: none; }
  .milestones-pulse { animation-delay: 0s; }
  .milestones-bus { left: calc((100% - var(--gap)) / 4); right: calc((100% - var(--gap)) / 4); }
  .milestones-chip { font-size: 10.5px; padding: 0 8px; gap: 5px; height: 24px; }
  .milestones-f em { font-size: 8px; padding: 1.5px 5px; }
  .milestones-v u { display: none; }
  .milestones-f { gap: 5px; padding: 0 6px; }
  .milestones-dock { height: 104px; }
  .milestones-n { grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: center; }
  .milestones-av { width: 24px; height: 24px; font-size: 9px; }
  .milestones-who b { display: inline; font-size: 12px; } .milestones-who small { display: inline; margin-left: 6px; }
  .milestones-idle { font-size: 11.5px; }
  .milestones-out { font-size: 13.5px; }
}
