.track-page {
  padding: 36px 16px 80px;
  background: #f4f8f6;
  min-height: 520px;
}

.track-wrap {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.track-search-label {
  display: block;
  margin-bottom: 10px;
  color: #1d3b32;
  font-size: 18px;
  font-weight: 800;
}

.track-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e3eee8;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(20, 80, 50, 0.05);
}

.track-search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 12px 18px;
  font: inherit;
  font-size: 15px;
  color: #172828;
}

.track-search-bar input + input {
  border-inline-start: 1px solid #e3eee8;
}

.track-search-bar button {
  order: -1;
  border: 0;
  border-radius: 999px;
  background: #1f9a5c;
  color: #ffffff;
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.track-search-bar button:hover {
  background: #17864f;
}

.track-alert,
.track-hint {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  color: #3d524b;
  line-height: 1.7;
}

.track-alert {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.track-result {
  margin-top: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.track-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e7f3ec;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(20, 80, 50, 0.04);
}

.track-found {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding-inline-end: 18px;
  border-inline-end: 1px solid #edf3f0;
}

.track-found strong,
.track-chip strong,
.track-detail strong {
  display: block;
  color: #173528;
}

.track-found span,
.track-chip span,
.track-detail-label {
  color: #6d7a76;
  font-size: 13px;
}

.track-found-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1f9a5c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(31, 154, 92, 0.12);
  flex: 0 0 42px;
}

.track-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-width: 0;
}

.track-chip-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef8f2;
  color: #1f9a5c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
}

.track-chip strong {
  margin-top: 2px;
  font-size: 18px;
}

.track-panel,
.track-journey {
  position: relative;
  margin-top: 34px;
  padding: 36px 18px 16px;
  background: #ffffff;
  border: 1px solid #e7f3ec;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(20, 80, 50, 0.04);
}

.track-ribbon {
  position: absolute;
  top: -16px;
  inset-inline-start: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: #1f9a5c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.track-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.track-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f7fbf8;
  border: 1px solid #e7f2ec;
  border-radius: 18px;
  padding: 16px 18px;
  min-width: 0;
}

.track-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e8f7ef;
  color: #1f9a5c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
}

.track-detail strong {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.track-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.track-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.track-journey {
  padding-bottom: 16px;
}

.track-timeline {
  display: flex;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 18px 6px 8px;
  overflow: hidden;
}

.track-timeline li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 10px 12px;
  text-align: center;
}

.track-line {
  position: absolute;
  z-index: 0;
  top: 22px;
  inset-inline-start: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 4px;
  border-radius: 999px;
  background: #e6eeea;
}

.track-line.is-done {
  background: #3dcc6e;
}

.track-line.is-to-current {
  background: linear-gradient(to left, #3dcc6e, #f5b429);
}

.track-dot {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #ffffff;
  border: 0;
  font-size: 20px;
}

.track-timeline li.is-complete .track-dot {
  background: #34c36a;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(52, 195, 106, 0.22);
}

.track-timeline li.is-current .track-dot {
  background: #f5b429;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(245, 180, 41, 0.28);
}

.track-timeline li.is-current strong {
  color: #173528;
}

.track-timeline strong {
  display: block;
  color: #173528;
  font-size: 15px;
  line-height: 1.45;
}

.track-timeline p,
.track-timeline time {
  display: block;
  margin: 4px 0 0;
  color: #7d8b86;
  font-size: 12px;
  line-height: 1.6;
}

.track-timeline time span {
  display: block;
}

.track-current-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 4px 0;
  padding: 12px 16px;
  border: 1px solid #f0e4c8;
  border-radius: 16px;
  background: #fbf8ef;
}

.track-current-note h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #c4a15a;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.track-current-note h3 span {
  width: 22px;
  height: 22px;
  border: 1.5px solid #e0c27a;
  border-radius: 50%;
  color: #c4a15a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: Georgia, serif;
  line-height: 1;
}

.track-current-note p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #173528;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.track-current-note-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #b7e4cc;
  background: #f3fbf6;
  color: #1f9a5c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}

.track-beneficiary-notes {
  position: relative;
  margin-top: 34px;
  padding: 28px 16px 16px;
  border: 1px solid #e7f3ec;
  border-radius: 22px;
  background: #ffffff;
}

.track-beneficiary-notes h3 {
  position: absolute;
  top: -16px;
  inset-inline-start: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #e7f6ee;
  color: #1f9a5c;
  font-size: 15px;
  font-weight: 700;
}

.track-beneficiary-notes h3 i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1f9a5c;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.track-beneficiary-notes p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0 14px;
  border-inline-start: 1px solid #e3eee8;
  color: #173528;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  text-align: start;
}

.track-notes-box {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 0.55fr);
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 22px 8px;
  background: linear-gradient(180deg, #f7fcf9 0%, #eef8f3 100%);
  border: 1px solid #e7f3ec;
  border-radius: 22px;
  overflow: hidden;
}

.track-notes {
  background: transparent;
  margin: 0;
  padding: 4px 0 12px;
}

.track-notes h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #1f9a5c;
  color: #ffffff;
  font-size: 15px;
}

.track-notes h2 span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
}

.track-notes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.track-notes li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  color: #3d524b;
  font-size: 14px;
  line-height: 1.7;
}

.track-notes li i {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: #1f9a5c;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.track-notes-art {
  min-height: 120px;
}

.track-notes-art svg {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin-inline-start: auto;
}

.track-beneficiary-notes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.track-beneficiary-notes li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7fbf8;
}

.track-beneficiary-notes time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #5d6d6a;
  font-size: 13px;
  white-space: nowrap;
}

.track-beneficiary-notes time span {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.4;
}

.track-beneficiary-notes time i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef8f2;
  color: #1f9a5c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .track-beneficiary-notes li {
    flex-wrap: wrap;
  }

  .track-beneficiary-notes p {
    flex-basis: 100%;
    border: 0;
    padding: 0;
    text-align: start;
  }
}

@media (max-width: 900px) {
  .track-details,
  .track-notes-box {
    grid-template-columns: 1fr;
  }

  .track-notes-art svg {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .track-page {
    padding: 20px 12px 64px;
  }

  .track-search-bar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    padding: 8px;
  }

  .track-search-bar button {
    order: 0;
    width: 100%;
    min-height: 48px;
  }

  .track-search-bar input + input {
    border-inline-start: 0;
    border-top: 1px solid #e3eee8;
  }

  .track-result {
    padding: 0;
  }

  .track-found {
    border: 0;
    padding: 0;
  }

  .track-result-head,
  .track-chip,
  .track-details,
  .track-journey {
    width: 100%;
  }

  .track-chip {
    min-width: 0;
  }

  .track-details {
    grid-template-columns: 1fr;
  }

  .track-journey {
    padding: 30px 6px 0;
  }

  .track-ribbon {
    inset-inline-start: 14px;
    font-size: 14px;
    padding: 7px 12px;
  }

  .track-timeline {
    overflow: visible;
    padding: 8px 0 4px;
  }

  .track-timeline li {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 2px 8px;
  }

  .track-dot {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
  }

  .track-dot {
    font-size: 16px;
  }

  .track-line {
    top: 18px;
    inset-inline-start: calc(50% + 21px);
    width: calc(100% - 42px);
    height: 3px;
  }

  .track-current-note {
    align-items: flex-start;
    margin-inline: 0;
  }

  .track-current-note h3 {
    white-space: normal;
  }

  .track-current-note p {
    font-size: 13px;
    text-align: start;
  }

  .track-timeline strong,
  .track-timeline time span {
    overflow-wrap: anywhere;
  }

  .track-timeline strong {
    font-size: 12px;
    line-height: 1.35;
  }

  .track-timeline p,
  .track-timeline time {
    font-size: 11px;
    line-height: 1.35;
  }
}
