/* UI Timelines — 15 named patterns */

/* ========== Shared spine helpers ========== */
.tl-spine {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-spine > li {
  position: relative;
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
}

.tl-spine > li:last-child {
  padding-bottom: 0;
}

.tl-spine > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 1.15rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.tl-dot {
  position: relative;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-raised);
}

.tl-dot--done {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 2px #fff;
}

.tl-dot--current {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgb(13 122 111 / 0.18);
}

.tl-dot--warn {
  border-color: var(--warn);
  background: var(--warn);
}

.tl-dot--muted {
  border-color: var(--border);
  background: var(--surface);
}

/* ========== 1. Activity Feed Basic ========== */
.tl-feed-basic {
  max-width: 28rem;
  margin-inline: auto;
  padding: 1rem 1.1rem;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
}

.tl-feed-basic__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.tl-feed-basic__head h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.tl-feed-basic__head p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.tl-feed-basic__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tl-feed-basic__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: start;
}

.tl-feed-basic__body {
  min-width: 0;
}

.tl-feed-basic__body p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink);
}

.tl-feed-basic__body strong {
  font-weight: 700;
}

.tl-feed-basic__meta {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.tl-feed-basic__time {
  font-size: 0.7rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ========== 2. Activity Feed Rich ========== */
.tl-feed-rich {
  max-width: 32rem;
  margin-inline: auto;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
  overflow: hidden;
}

.tl-feed-rich__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.tl-feed-rich__toolbar h3 {
  margin: 0;
  font-size: 0.9375rem;
}

.tl-feed-rich__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tl-feed-rich__filters button {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.tl-feed-rich__filters button.is-active,
.tl-feed-rich__filters button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.tl-feed-rich__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-feed-rich__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.tl-feed-rich__item:last-child {
  border-bottom: 0;
}

.tl-feed-rich__item.is-unread {
  background: linear-gradient(90deg, var(--accent-soft) 0, transparent 12px);
}

.tl-feed-rich__title {
  margin: 0;
  font-size: 0.875rem;
}

.tl-feed-rich__title strong {
  font-weight: 700;
}

.tl-feed-rich__copy {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.tl-feed-rich__attach {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.tl-feed-rich__attach-thumb {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  object-fit: cover;
}

.tl-feed-rich__attach-meta {
  min-width: 0;
}

.tl-feed-rich__attach-meta p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.tl-feed-rich__attach-meta span {
  font-size: 0.7rem;
  color: var(--ink-faint);
}

.tl-feed-rich__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ========== 3. Activity Feed by Day ========== */
.tl-feed-days {
  max-width: 30rem;
  margin-inline: auto;
  padding: 1rem;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
}

.tl-feed-days__head {
  margin-bottom: 1rem;
}

.tl-feed-days__head h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.tl-feed-days__head p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.tl-feed-days__group + .tl-feed-days__group {
  margin-top: 1.15rem;
}

.tl-feed-days__label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tl-feed-days__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.tl-feed-days__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tl-feed-days__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.tl-feed-days__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 800;
}

.tl-feed-days__icon--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.tl-feed-days__icon--info {
  background: var(--info-soft);
  color: var(--info);
}

.tl-feed-days__body p {
  margin: 0;
  font-size: 0.875rem;
}

.tl-feed-days__body span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ========== 4. Order Stepper Horizontal ========== */
.tl-order-steps {
  max-width: 42rem;
  margin-inline: auto;
  padding: 1.15rem 1.25rem 1.35rem;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
}

.tl-order-steps__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.tl-order-steps__head h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.tl-order-steps__head p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.tl-order-steps__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-order-steps__step {
  position: relative;
  text-align: center;
  padding-top: 1.75rem;
}

.tl-order-steps__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: calc(50% + 0.7rem);
  right: calc(-50% + 0.7rem);
  height: 2px;
  background: var(--border);
}

.tl-order-steps__step.is-done:not(:last-child)::after {
  background: var(--accent);
}

.tl-order-steps__marker {
  position: absolute;
  top: 0.2rem;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--ink-faint);
}

.tl-order-steps__step.is-done .tl-order-steps__marker {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.tl-order-steps__step.is-current .tl-order-steps__marker {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgb(13 122 111 / 0.16);
}

.tl-order-steps__label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
}

.tl-order-steps__time {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  color: var(--ink-faint);
}

@media (max-width: 36rem) {
  .tl-order-steps__track {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tl-order-steps__step {
    display: grid;
    grid-template-columns: 1.35rem 1fr;
    gap: 0.15rem 0.75rem;
    text-align: left;
    padding: 0 0 1rem;
    align-items: start;
  }

  .tl-order-steps__step:last-child {
    padding-bottom: 0;
  }

  .tl-order-steps__step:not(:last-child)::after {
    top: 1.35rem;
    left: 0.55rem;
    right: auto;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .tl-order-steps__marker {
    position: static;
    transform: none;
    grid-row: 1 / span 2;
  }

  .tl-order-steps__label,
  .tl-order-steps__time {
    grid-column: 2;
  }
}

/* ========== 5. Order Track Vertical ========== */
.tl-order-track {
  max-width: 28rem;
  margin-inline: auto;
  padding: 1.1rem 1.15rem;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
}

.tl-order-track__head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.tl-order-track__head h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.tl-order-track__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.tl-order-track__meta code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
}

.tl-order-track__list > li.is-current .tl-order-track__title {
  color: var(--accent-deep);
}

.tl-order-track__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

.tl-order-track__copy {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.tl-order-track__time {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ========== 6. Shipment Card ========== */
.tl-order-ship {
  max-width: 34rem;
  margin-inline: auto;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
  overflow: hidden;
}

.tl-order-ship__banner {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  background:
    linear-gradient(135deg, #0b4f49 0%, #0d7a6f 55%, #1a8f82 100%);
  color: #fff;
}

.tl-order-ship__banner p {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.85;
}

.tl-order-ship__banner h3 {
  margin: 0;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.tl-order-ship__banner .eta {
  font-size: 0.875rem;
  font-weight: 600;
}

.tl-order-ship__body {
  padding: 1rem 1.15rem 1.15rem;
}

.tl-order-ship__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.tl-order-ship__row dt {
  margin: 0;
  color: var(--ink-faint);
  font-weight: 600;
}

.tl-order-ship__row dd {
  margin: 0.1rem 0 0;
  font-weight: 700;
}

.tl-order-ship__map {
  position: relative;
  height: 7.5rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 40%, #c8e6e2 0, transparent 45%),
    radial-gradient(circle at 70% 60%, #d7e0ef 0, transparent 40%),
    linear-gradient(160deg, #eef3f8, #dfe8f1);
}

.tl-order-ship__route {
  position: absolute;
  inset: 35% 12% auto;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0 62%, var(--border-strong) 62% 100%);
}

.tl-order-ship__pin {
  position: absolute;
  top: 28%;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 2px 8px rgb(26 35 50 / 0.25);
}

.tl-order-ship__pin--start {
  left: 10%;
}

.tl-order-ship__pin--now {
  left: calc(12% + 50%);
  width: 1.1rem;
  height: 1.1rem;
  top: 24%;
  background: var(--warn);
}

.tl-order-ship__pin--end {
  right: 10%;
  left: auto;
  background: var(--border-strong);
}

.tl-order-ship__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ========== 7. Vertical History ========== */
.tl-history {
  max-width: 34rem;
  margin-inline: auto;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
}

.tl-history__head {
  margin-bottom: 1.15rem;
}

.tl-history__head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.tl-history__head p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.tl-history__year {
  display: inline-block;
  margin: 0 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.tl-history__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.tl-history__copy {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.tl-history .tl-dot {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.35rem;
}

.tl-history .tl-spine > li:not(:last-child)::before {
  left: 0.425rem;
  top: 1.05rem;
}

/* ========== 8. Alternating History ========== */
.tl-history-alt {
  max-width: 44rem;
  margin-inline: auto;
  padding: 1.25rem 1rem 1.5rem;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
}

.tl-history-alt__head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tl-history-alt__head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.tl-history-alt__head p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.tl-history-alt__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-history-alt__list::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 50%;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.tl-history-alt__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.tl-history-alt__item:last-child {
  margin-bottom: 0;
}

.tl-history-alt__item::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  z-index: 1;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
}

.tl-history-alt__card {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
}

.tl-history-alt__item:nth-child(odd) .tl-history-alt__card {
  grid-column: 1;
  text-align: right;
}

.tl-history-alt__item:nth-child(even) .tl-history-alt__card {
  grid-column: 2;
}

.tl-history-alt__year {
  margin: 0 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.tl-history-alt__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.tl-history-alt__copy {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

@media (max-width: 40rem) {
  .tl-history-alt__list::before {
    left: 0.55rem;
  }

  .tl-history-alt__item {
    grid-template-columns: 1fr;
    padding-left: 1.6rem;
    gap: 0;
  }

  .tl-history-alt__item::after {
    left: 0.55rem;
  }

  .tl-history-alt__item:nth-child(odd) .tl-history-alt__card,
  .tl-history-alt__item:nth-child(even) .tl-history-alt__card {
    grid-column: 1;
    text-align: left;
  }
}

/* ========== 9. Changelog Versions ========== */
.tl-changelog {
  max-width: 36rem;
  margin-inline: auto;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
  overflow: hidden;
}

.tl-changelog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.tl-changelog__head h3 {
  margin: 0;
  font-size: 1rem;
}

.tl-changelog__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-changelog__item {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.tl-changelog__item:last-child {
  border-bottom: 0;
}

.tl-changelog__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.45rem;
}

.tl-changelog__ver {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 800;
}

.tl-changelog__date {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.tl-changelog__summary {
  margin: 0 0 0.55rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.tl-changelog__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tl-changelog__bullets {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: var(--ink);
}

.tl-changelog__bullets li + li {
  margin-top: 0.25rem;
}

/* ========== 10. Release Notes ========== */
.tl-release {
  max-width: 38rem;
  margin-inline: auto;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
}

.tl-release__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.tl-release__hero h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.tl-release__hero p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.tl-release__section + .tl-release__section {
  margin-top: 1rem;
}

.tl-release__section h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.tl-release__section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tl-release__section li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
}

.tl-release__mark {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
}

.tl-release__mark--new {
  background: #f4ebff;
  color: #6941c6;
}

.tl-release__mark--improve {
  background: var(--info-soft);
  color: var(--info);
}

.tl-release__mark--fix {
  background: var(--success-soft);
  color: var(--success);
}

.tl-release__section li p {
  margin: 0;
  font-size: 0.875rem;
}

.tl-release__section li span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ========== 11. Notification Feed ========== */
.tl-feed-notify {
  max-width: 28rem;
  margin-inline: auto;
  padding: 1rem 1.1rem;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
}

.tl-feed-notify__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.tl-feed-notify__head h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.tl-feed-notify__head p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.tl-feed-notify__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-feed-notify__item {
  display: grid;
  grid-template-columns: 0.5rem 1.75rem 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.65rem 0.35rem;
  border-radius: 8px;
}

.tl-feed-notify__item + .tl-feed-notify__item {
  border-top: 1px solid var(--border);
}

.tl-feed-notify__item.is-unread {
  background: rgb(13 122 111 / 0.06);
}

.tl-feed-notify__dot {
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: transparent;
}

.tl-feed-notify__item.is-unread .tl-feed-notify__dot {
  background: var(--accent);
}

.tl-feed-notify__icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink-muted);
  background: var(--surface);
}

.tl-feed-notify__icon--mention {
  background: #f4ebff;
  color: #6941c6;
}

.tl-feed-notify__icon--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.tl-feed-notify__icon--ok {
  background: var(--success-soft);
  color: var(--success);
}

.tl-feed-notify__body p {
  margin: 0;
  font-size: 0.875rem;
}

.tl-feed-notify__body time {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ========== 12. Threaded Activity Feed ========== */
.tl-feed-thread {
  max-width: 30rem;
  margin-inline: auto;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
}

.tl-feed-thread__head {
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.tl-feed-thread__head h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.tl-feed-thread__head p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.tl-feed-thread__root {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.tl-feed-thread__title {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
}

.tl-feed-thread__copy {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.tl-feed-thread__root time,
.tl-feed-thread__reply time {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.tl-feed-thread__replies {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.35rem;
  position: relative;
}

.tl-feed-thread__replies > li {
  position: relative;
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.65rem;
  padding-bottom: 0.85rem;
}

.tl-feed-thread__replies > li:last-child {
  padding-bottom: 0;
}

.tl-feed-thread__replies > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 1.15rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.tl-feed-thread__reply {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
}

.tl-feed-thread__reply p {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
}

.tl-feed-thread__reply--composer {
  display: block;
  background: transparent;
  border-style: dashed;
}

/* ========== 13. Delivery Exception Track ========== */
.tl-order-delay {
  max-width: 30rem;
  margin-inline: auto;
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
}

.tl-order-delay__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.tl-order-delay__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.tl-order-delay__head p {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.tl-order-delay__alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #f9dbaf;
  border-radius: 10px;
  background: var(--warn-soft);
}

.tl-order-delay__alert p {
  margin: 0;
  font-size: 0.875rem;
}

.tl-order-delay__eta {
  margin-top: 0.35rem !important;
  font-size: 0.75rem !important;
  color: var(--warn);
  font-weight: 700;
}

.tl-order-delay__list {
  margin-bottom: 1rem;
}

.tl-order-delay__title {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.tl-order-delay__copy {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.tl-order-delay__list time {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.tl-order-delay__list > li.is-exception .tl-order-delay__title {
  color: var(--warn);
}

.tl-order-delay__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ========== 14. Horizontal Roadmap History ========== */
.tl-history-road {
  max-width: 42rem;
  margin-inline: auto;
  padding: 1.15rem 1.25rem 1.3rem;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
}

.tl-history-road__head {
  margin-bottom: 1.15rem;
}

.tl-history-road__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.tl-history-road__head p {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.tl-history-road__rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-bottom: 1.15rem;
  padding-top: 0.35rem;
}

.tl-history-road__rail::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0.95rem;
  height: 2px;
  background: var(--border);
}

.tl-history-road__mark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.tl-history-road__dot {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-raised);
}

.tl-history-road__mark.is-active .tl-history-road__dot,
.tl-history-road__mark[aria-selected="true"] .tl-history-road__dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 2px #fff;
}

.tl-history-road__mark.is-current .tl-history-road__dot {
  box-shadow: 0 0 0 3px rgb(13 122 111 / 0.18);
}

.tl-history-road__mark.is-active,
.tl-history-road__mark[aria-selected="true"] {
  color: var(--accent-deep);
}

.tl-history-road__panel {
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
}

.tl-history-road__year {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.tl-history-road__panel h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.tl-history-road__panel p:last-child {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

@media (max-width: 30rem) {
  .tl-history-road__rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 0.35rem;
  }

  .tl-history-road__rail::before {
    display: none;
  }
}

/* ========== 15. Compact Patch Changelog ========== */
.tl-changelog-dense {
  max-width: 36rem;
  margin-inline: auto;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--surface-raised);
  border-radius: calc(var(--tl-radius) - 2px);
}

.tl-changelog-dense__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.tl-changelog-dense__head h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.tl-changelog-dense__search input {
  width: min(100%, 11rem);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 0.8125rem;
  color: var(--ink);
}

.tl-changelog-dense__table {
  display: flex;
  flex-direction: column;
}

.tl-changelog-dense__row {
  display: grid;
  grid-template-columns: 4.25rem 3.75rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}

.tl-changelog-dense__row--head {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tl-changelog-dense__row time,
.tl-changelog-dense__row code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.tl-changelog-dense__row code {
  font-weight: 700;
  color: var(--accent-deep);
}

.tl-changelog-dense__row [role="cell"]:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 28rem) {
  .tl-changelog-dense__row {
    grid-template-columns: 3.5rem 1fr;
  }

  .tl-changelog-dense__row code {
    grid-column: 2;
  }

  .tl-changelog-dense__row [role="cell"]:last-child {
    grid-column: 1 / -1;
  }

  .tl-changelog-dense__row--head span:nth-child(2) {
    display: none;
  }
}
