.movement-section {
  border-top: 1px solid #ebe7de;
}

.movement-list {
  display: grid;
  gap: 10px;
}

.movement-list.compact {
  padding: 0 22px 22px;
}

.movement-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #e6e2d9;
  border-radius: 14px;
  background: #fffdf9;
}

.movement-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--location-accent, var(--green));
  border-radius: 11px;
  background: color-mix(in srgb, var(--location-accent, var(--green)) 12%, #fff);
}

.movement-copy {
  min-width: 0;
}

.movement-copy > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.movement-copy strong {
  overflow: hidden;
  color: #35403c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movement-copy time {
  flex: 0 0 auto;
  color: #929792;
  font-size: 9px;
}

.movement-copy p {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 5px 0 3px;
  color: #5e6864;
  font-size: 10px;
}

.movement-copy p span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movement-copy p span:last-child {
  color: var(--green);
  font-weight: 800;
}

.movement-copy p svg {
  flex: 0 0 auto;
  color: #a1a5a1;
}

.movement-copy small {
  display: block;
  color: #959a96;
  font-size: 9px;
}

.movement-empty {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px;
  color: #89908c;
  border: 1px dashed #dcd9d1;
  border-radius: 14px;
  background: #f8f5ef;
}

.movement-list.compact .movement-empty {
  width: 100%;
}

.movement-empty > span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #74857d;
  border-radius: 12px;
  background: #e8eee9;
}

.movement-empty strong {
  display: block;
  margin-bottom: 2px;
  color: #59635f;
  font-size: 11px;
}

.movement-empty p {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
}

.movement-modal {
  display: grid;
  gap: 16px;
}

.movement-summary {
  display: grid;
  grid-template-columns: 42px auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #edf3ef, #f6f1e7);
}

.movement-summary > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--green);
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
}

.movement-summary div {
  display: grid;
}

.movement-summary strong {
  color: #2f443c;
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1;
}

.movement-summary small {
  margin-top: 3px;
  color: #6f7974;
  font-size: 9px;
}

.movement-summary p {
  margin: 0;
  color: #6e7773;
  font-size: 10px;
  line-height: 1.5;
}

.item-movement-button {
  display: flex;
  justify-content: flex-end;
  margin: 0 20px 20px;
}

.item-movement-button button span {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: 4px;
  border-radius: 999px;
  background: #e7ece8;
  font-size: 9px;
}

@media (max-width: 700px) {
  .movement-list.compact {
    padding: 0 14px 16px;
  }

  .movement-copy > div {
    display: grid;
    gap: 2px;
  }

  .movement-copy time {
    order: 2;
  }

  .movement-copy p {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .movement-copy p span {
    max-width: calc(100% - 20px);
    white-space: normal;
  }

  .movement-summary {
    grid-template-columns: 42px 1fr;
  }

  .movement-summary p {
    grid-column: 1 / -1;
  }
}

