.morpheus-timeline {
  margin: 60px -5px 0;
  padding: 34px 34px 28px;
  background: #f3f3ef;
  border-radius: 30px;
  overflow: hidden;
}

.morpheus-timeline-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 18px;
}

.morpheus-timeline-eyebrow,
.morpheus-timeline-time {
  margin: 0 0 6px;
  color: var(--color-05);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.morpheus-timeline-header h2 {
  max-width: 720px;
  padding: 0;
}

.morpheus-timeline-intro {
  max-width: 430px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.morpheus-timeline-disclosure {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 11px 14px;
  color: #354238;
  font-size: 12px;
  line-height: 1.4;
  background: #e4eadf;
  border: 1px solid #cad5c2;
  border-radius: 12px;
}

.morpheus-timeline-details {
  margin: 0;
}

.morpheus-timeline-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 12px 14px 12px 18px;
  background: #fff;
  border: 1px solid rgba(53, 66, 56, 0.14);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(36, 43, 37, 0.05);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.morpheus-timeline-summary::-webkit-details-marker {
  display: none;
}

.morpheus-timeline-summary strong,
.morpheus-timeline-summary small {
  display: block;
}

.morpheus-timeline-summary strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.morpheus-timeline-summary small {
  margin-top: 2px;
  color: #59655b;
  font-size: 12px;
  line-height: 1.4;
}

.morpheus-timeline-summary-icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background: var(--color-05);
  border-radius: 50%;
}

.morpheus-timeline-summary-icon::before,
.morpheus-timeline-summary-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.morpheus-timeline-summary-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.morpheus-timeline-details[open] .morpheus-timeline-summary {
  background: #eef2ea;
  border-color: #cad5c2;
}

.morpheus-timeline-details[open] .morpheus-timeline-summary-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.morpheus-timeline-details-content {
  padding-top: 14px;
  animation: morpheus-timeline-reveal 0.2s ease-out;
}

@keyframes morpheus-timeline-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.morpheus-timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.morpheus-timeline-swipe {
  margin: 0;
  color: #59655b;
  font-size: 12px;
}

.morpheus-timeline-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.morpheus-timeline-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  background: var(--color-05);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.morpheus-timeline-control:hover:not(:disabled) {
  transform: translateY(-1px);
}

.morpheus-timeline-control:focus-visible,
.morpheus-timeline-grid:focus-visible {
  outline: 2px solid var(--color-05);
  outline-offset: 3px;
}

.morpheus-timeline-control:disabled {
  cursor: default;
  opacity: 0.3;
}

.morpheus-timeline-grid {
  display: flex;
  gap: 14px;
  margin: 0 -4px;
  padding: 4px 4px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 4px;
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(59, 122, 75, 0.45) transparent;
  scrollbar-width: thin;
}

.morpheus-timeline-grid::-webkit-scrollbar {
  height: 5px;
}

.morpheus-timeline-grid::-webkit-scrollbar-thumb {
  background: rgba(59, 122, 75, 0.45);
  border-radius: 10px;
}

.morpheus-timeline-card {
  flex: 0 0 clamp(190px, 18.5vw, 220px);
  min-width: 0;
  margin: 0;
  background: #fff;
  border: 1px solid rgba(53, 66, 56, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(36, 43, 37, 0.06);
  overflow: hidden;
  scroll-snap-align: start;
}

.morpheus-timeline-card-result {
  border-color: rgba(59, 122, 75, 0.4);
  box-shadow: 0 8px 24px rgba(59, 122, 75, 0.1);
}

.morpheus-timeline-image-wrp {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #e9e6df;
  overflow: hidden;
}

.morpheus-timeline-image-wrp img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.morpheus-timeline-step {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: rgba(29, 39, 31, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  backdrop-filter: blur(8px);
}

.morpheus-timeline-card figcaption {
  min-height: 132px;
  padding: 15px;
}

.morpheus-timeline-card h3 {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

.morpheus-timeline-card figcaption > p:last-child {
  margin: 0;
  color: #4b4b4b;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .morpheus-timeline-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .morpheus-timeline-intro {
    max-width: 700px;
  }

  .morpheus-timeline-card {
    flex-basis: 205px;
  }
}

@media (max-width: 600px) {
  .morpheus-timeline {
    margin-top: 40px;
    padding: 28px 20px 20px;
    border-radius: 20px;
  }

  .morpheus-timeline-header h2 {
    font-size: 27px;
    line-height: 1.14;
  }

  .morpheus-timeline-disclosure {
    display: block;
    margin-bottom: 12px;
  }

  .morpheus-timeline-summary {
    min-height: 58px;
    padding-left: 15px;
  }

  .morpheus-timeline-toolbar {
    margin-bottom: 8px;
  }

  .morpheus-timeline-swipe {
    max-width: 190px;
  }

  .morpheus-timeline-control {
    width: 36px;
    height: 36px;
  }

  .morpheus-timeline-grid {
    margin: 0 -20px;
    padding: 4px 20px 12px;
    scroll-padding-inline: 20px;
  }

  .morpheus-timeline-card {
    flex-basis: min(220px, 72vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .morpheus-timeline-control,
  .morpheus-timeline-summary-icon::before,
  .morpheus-timeline-summary-icon::after {
    transition: none;
  }

  .morpheus-timeline-details-content {
    animation: none;
  }
}
